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 shortcutCtrl+,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_sizeline to start fresh.
内容的提问来源于stack exchange,提问作者Noah Fernandez

