1. 修改編輯器設定
使用選單列打開 Preferences\Settings-User,貼上以下文字
{
"bold_folder_labels": true,
"color_scheme": "Packages/Color Scheme - Default/Monokai.tmTheme",
"default_line_ending": "unix",
"detect_slow_plugins": false,
"draw_minimap_border": true,
"ensure_newline_at_eof_on_save": true,
"file_exclude_patterns":
[
"*.bmp",
"*.jpg",
"*.png",
"*.psd",
"*.tga",
"*.mp3",
"*.wav",
"*.ttf"
],
"folder_exclude_patterns":
[
".git",
".hg",
".svn"
],
"font_face": "Inconsolata",
"font_options":
[
"directwrite"
],
"font_size": 11,
"highlight_line": false,
"ignored_packages":
[
"Vintage"
],
"rulers":
[
120
],
"tab_size": 4,
"translate_tabs_to_spaces": true,
"tree_animation_enabled": false,
"trim_trailing_white_space_on_save": true,
"use_tab_stops": true,
"word_separators": "./\\()\"'-:,.;<>~!@#%^&*|+=[]{}`~?",
"word_wrap": "true"
}
2. 修改快速鍵設定
使用選單列打開 Preferences\Key Bindings-User,貼上以下文字
[
{ "keys": ["ctrl+q"], "command": "toggle_comment", "args": { "block": false } },
{ "keys": ["ctrl+shift+q"], "command": "toggle_comment", "args": { "block": true } },
{ "keys": ["ctrl+shift+w"], "command": "close_all" },
{ "keys": ["alt+d"], "command": "open_dir", "args": {"dir": "$file_path", "file": "$file_name"} },
{ "keys": ["alt+h"], "command": "reindent", "args": {"single_line": false} },
{ "keys": ["alt+j"], "command": "js_format"},
{ "keys": ["ctrl+shift+r"], "command": "reveal_in_side_bar"}
]
可以看到在基本設定以及快速鍵設定都有 Default 與 User
Preferences\Settings-Default
Preferences\Settings-User
Preferences\Key Bindings-Default
Preferences\Key Bindings-User
1. 當編輯器進行升級的時候會直接覆蓋 Default 的檔案,所以不建議把設定設定在 Default 的檔案
2. 可以從 Default 的檔案看到有哪些數值可以進行調整,接下來在 User 的檔案進行設定覆寫,因為先載入 Defautl 後載入 User。
沒有留言:
張貼留言