更改 Sublime Text 3 中的默认设置 [英] Change Default settings in Sublime Text 3
问题描述
在 Linux 上安装 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,
我无法将 true 替换为 false.该文件似乎是只读的.
I can't replace true to false. The file appears to be read-only.
推荐答案
Sublime Text 3 不允许您更改 Settings - Default
文件中的默认设置.这是因为每次升级程序时此文件都会被覆盖,从而丢失所有设置.要更改设置,请选择 Preferences ->设置 - 用户
,如果文件没有内容则创建一个空对象:
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:
{
}
并将您的设置放入其中,除了最后一个之外的每个后面都有一个逗号(基本上,它应该是有效的JSON):
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 应用来自默认 .sublime-settings
文件和的设置用户 .sublime-settings
文件.但是,User
设置文件中存在的任何设置都将覆盖 Default
设置文件中的设置.
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.
这适用于 Preferences.sublime-settings
和任何插件特定的 .sublime-settings
文件.
This applies to both Preferences.sublime-settings
and any plugin-specific .sublime-settings
files.
此外:项目、语法和缓冲区特定设置将优先于通用 .sublime-settings
文件.有关详细信息,请参阅 SublimeText/Docs/Settings
Furthermore: project, syntax, and buffer specific settings will take precedence over a general purpose .sublime-settings
file. For more information see SublimeText/Docs/Settings
这篇关于更改 Sublime Text 3 中的默认设置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!