You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Sublime Text 3解析设置报错:修改文本字号遇异常求助

Fixing "Error trying to parse settings, unexpected character" in Sublime Text 3

Hey there! That error almost always pops up when there's a JSON syntax mistake in your user settings file—super easy to slip up when tweaking options like font size. Let's get this sorted step by step:

  • First, open the right settings file: Head to Preferences > Settings (or use the shortcut Ctrl+, on Windows/Linux, Cmd+, on Mac). Make sure you're editing the User settings tab on the right (the left is Default settings, which you shouldn't modify directly).

  • Check for common JSON blunders:

    • Trailing commas at the end of the last key-value pair (this is the #1 culprit!)
    • Unclosed quotation marks around string values
    • Mismatched curly braces {} or square brackets []

    For example, this invalid code will trigger the error:

    {
        "font_size": 16,
        "word_wrap": true,  // That extra comma here breaks everything!
    }
    

    Here's the fixed version:

    {
        "font_size": 16,
        "word_wrap": true
    }
    
  • Use Sublime's built-in hint: The settings file uses JSON syntax, so Sublime will highlight invalid code with red underlines. Follow those marks—they'll point straight to the problem spot.

  • If you're still stuck, paste your full User settings content here and I'll help you pinpoint the exact issue. If all else fails, save a backup of your current User settings, clear out the file, and add just the font_size line to start fresh.

内容的提问来源于stack exchange,提问作者Noah Fernandez

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.20 10:03:10