Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
731 views
in Technique[技术] by (71.8m points)

sublimetext3 - Change Default settings in Sublime Text 3

After installing sublime text 3 on Linux, I cannot seem to change the default settings, for example:

 // Controls auto pairing of quotes, brackets etc
"auto_match_enabled": true,

I can't replace true to false. The file appears to be read-only.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

Sublime Text 3 does not allow you to change default settings in the Settings - Default file. This is because this file gets overwritten each time the program is upgraded, losing all of your settings. To change settings, choose Preferences -> Settings - User, create an empty object if the file has no contents:

{

}

and put your settings in it, with a comma after each one except the last (basically, it should be valid JSON):

{
    "auto_match_enabled": false
}

You can copy from the default file and paste into the user file.


Sublime Text applies settings from both your Default .sublime-settings files & User .sublime-settings files. However, any settings that exist in your User settings files will override those in the Default settings files.

This applies to both Preferences.sublime-settings and any plugin-specific .sublime-settings files.

Furthermore: project, syntax, and buffer specific settings will take precedence over a general purpose .sublime-settings file. For more information see SublimeText/Docs/Settings


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...