sublime text配置文件(setting-default)中文注释
sublime text配置文件(setting-default)中文注释
菜单--Preferences--Settings-Default文件:
AخA
1
sublime text配置文件(setting-default)中文注释
2
菜单--Preferences--Settings-Default文件:
3
// While you can edit blog_post file, it’s best to put your changes in
4
// “User/Preferences.sublime-settings”, which overrides the settings in here.
5
//
6
// Settings may also be placed in file type specific options files, for
7
// example, in Packages/Python/Python.sublime-settings for python files.
8
{
9
// Sets the colors used within the text area
10
// 主题文件的路径
11
“color_scheme”: “Packages/Color Scheme – Default/Monokai.tmTheme”,
12
// Note that the font_face and font_size are overriden in the platform
13
// specific settings file, for example, “Preferences (Linux).sublime-settings”.
14
// Because of blog_post, setting them here will have no effect: you must set them
15
// in your User File Preferences.
16
// 设置字体和大小,必须在Settings-User里重写,这里设置没有任何效果
17
“font_face”: “Consolas”,
18
“font_size”: 12,
19
// Valid options are “no_bold”, “no_italic”, “no_antialias”, “gray_antialias”,
20
// “subpixel_antialias” and “no_round” (OS X only)
21
// 字体选项:no_bold不显示粗体字,no_italic不显示斜体字,no_antialias和no_antialias关闭反锯齿
22
// subpixel_antialias和no_round是OS X系统独有的
23
“font_options”: [],
24
// Characters that are considered to separate words
25
// 在文字上双击会全选当前的内容,如果里面出现以下字符,就会被截断
26
“word_separators”: “./\()”‘-:,.;<>~!@#$%^&*|+=[]{}`~?”,
27
// Set to false to prevent line numbers being drawn in the gutter
28
// 是否显示行号
29
“line_numbers”: true,
30
// Set to false to hide the gutter altogether
31
// 是否显示行号边栏
32
“gutter”: true,
33
// Spacing between the gutter and the text
34
// 行号边栏和文字的间距
35
“margin”: 4,
36
// Fold buttons are the triangles shown in the gutter to fold regions of text
37
// 是否显示代码折叠按钮
38
“fold_buttons”: true,
39
// Hides the fold buttons unless the mouse is over the gutter
40
// 不管鼠标在不在行号边栏,代码折叠按钮一直显示
41
“fade_fold_buttons”: true,
42
// Columns in which to display vertical rulers
43
//列显示垂直标尺,在中括号里填入数字,宽度按字符计算
44
“rulers”: [],
45
// Set to true to turn spell checking on by default
46
// 是否打开拼写检查
47
“spell_check”: false,
48
// The number of spaces a tab is considered equal to
49
// Tab键制表符宽度
50
“tab_size”: 4,
51
// Set to true to insert spaces when tab is pressed
52
// 设为true时,缩进和遇到Tab键时使用空格替代
53
“translate_tabs_to_spaces”: false,
54
// If translate_tabs_to_spaces is true, use_tab_stops will make tab and
55
// backspace insert/delete up to the next tabstop
56
// translate_tabs_to_spaces设置为true,Tab和Backspace的删除/插入作用于制表符宽度
57
// 否则作用于单个空格
58
“use_tab_stops”: true,
59
// Set to false to disable detection of tabs vs. spaces on load
60
// false时禁止在载入的时候检测制表符和空格
61
“detect_indentation”: true,
62
// Calculates indentation automatically when pressing enter
63
// 按回车时,自动与制表位对齐
64
“auto_indent”: true,
65
// Makes auto indent a little smarter, e.g., by indenting the next line
66
// after an if statement in C. Requires auto_indent to be enabled.
67
//针对C语言的
68
“smart_indent”: false,
69
// Adds whitespace up to the first open bracket when indenting. Requires
70
// auto_indent to be enabled.
71
// 需要启用auto_indent,第一次打开括号缩进时插入空格?(没测试出来效果…)
72
“indent_to_bracket”: true,
73
// Trims white space added by auto_indent when moving the caret off the
74
// line.
75
// 显示对齐的白线是否根据回车、tab等操作自动填补
76
“trim_automatic_white_space”: true,
77
// Disables horizontal scrolling if enabled.
78
// May be set to true, false, or “auto”, where it will be disabled for
79
// source code, and otherwise enabled.
80
// 是否自动换行,如果选auto,需要加双引号
81
“word_wrap”: false,
82
// Set to a value other than 0 to force wrapping at that column rather than the
83
// window width
84
// 设置窗口内文字区域的宽度
85
“wrap_width”: 0,
86
// Set to false to prevent word wrapped lines from being indented to the same
87
// level
88
// 防止被缩进到同一级的字换行
89
“indent_subsequent_lines”: true,
90
// Draws text centered in the window rather than left aligned
91
// 如果没有定义过,则文件居中显示(比如新建的文件)
92
“draw_centered”: false,
93
// Controls auto pairing of quotes, brackets etc
94
// 自动匹配引号,括号等
95
“auto_match_enabled”: true,
96
// Word list to use for spell checking
97
// 拼写检查的单词列表路径
98
“dictionary”: “Packages/Language – English/en_US.dic”,
99
// Set to true to draw a border around the visible rectangle on the minimap.
100
// The color of the border will be determined by the “minimapBorder” key in
101
// the color scheme
102
// 代码地图的可视区域部分是否加上边框,边框的颜色可在配色方案上加入minimapBorder键
103
“draw_minimap_border”: false,
104
// If enabled, will highlight any line with a caret
105
// 突出显示当前光标所在的行
106
“highlight_line”: false,
107
// Valid values are “smooth”, “phase”, “blink”, “wide” and “solid”.
108
// 设置光标闪动方式
109
“caret_style”: “smooth”,
110
// Set to false to disable underlining the brackets surrounding the caret
111
// 是否特殊显示当前光标所在的括号、代码头尾闭合标记
112
“match_brackets”: true,
113
// Set to false if you’d rather only highlight the brackets when the caret is
114
// next to one
115
// 设为false时,只有光标在括号或头尾闭合标记的两端时,match_brackets才生效
116
“match_brackets_content”: true,
117
// Set to false to not highlight square brackets. This only takes effect if
118
// match_brackets is true
119
// 是否突出显示圆括号,match_brackets为true生效
120
“match_brackets_square”: false,
121
// Set to false to not highlight curly brackets. This only takes effect if
122
// match_brackets is true
123
// 是否突出显示大括号,match_brackets为true生效
124
“match_brackets_braces”: false,
125
// Set to false to not highlight angle brackets. This only takes effect if
126
// match_brackets is true
127
// 是否突出显示尖括号,match_brackets为true生效
128
“match_brackets_angle”: false,
129
// Enable visualization of the matching tag in HTML and XML
130
// html和xml下突出显示光标所在标签的两端,影响HTML、XML、CSS等
131
“match_tags”: true,
132
// Highlights other occurrences of the currently selected text
133
// 全文突出显示和当前选中字符相同的字符
134
“match_selection”: true,
135
// Additional spacing at the top of each line, in pixels
136
// 设置每一行到顶部,以像素为单位的间距,效果相当于行距
137
“line_padding_top”: 1,
138
// Additional spacing at the bottom of each line, in pixels
139
// 设置每一行到底部,以像素为单位的间距,效果相当于行距
140
“line_padding_bottom”: 1,
141
// Set to false to disable scrolling past the end of the buffer.
142
// On OS X, blog_post value is overridden in the platform specific settings, so
143
// you’ll need to place blog_post line in your user settings to override it.
144
// 设置为false时,滚动到文本的最下方时,没有缓冲区
145
“scroll_past_end”: true,
146
// This controls what happens when pressing up or down when on the first
147
// or last line.
148
// On OS X, blog_post value is overridden in the platform specific settings, so
149
// you’ll need to place blog_post line in your user settings to override it.
150
// 控制向上或向下到第一行或最后一行时发生什么(没明白也没试出来)
151
“move_to_limit_on_up_down”: false,
152
// Set to “none” to turn off drawing white space, “selection” to draw only the
153
// white space within the selection, and “all” to draw all white space
154
// 按space或tab时,实际会产生白色的点(一个空格一个点)或白色的横线(tab_size设置的制表符的宽度),选中状态下才能看到
155
// 设置为none时,什么情况下都不显示这些点和线
156
// 设置为selection时,只显示选中状态下的点和线
157
// 设置为all时,则一直显示
158
“draw_white_space”: “selection”,
159
// Set to false to turn off the indentation guides.
160
// The color and width of the indent guides may be customized by editing
161
// the corresponding .tmTheme file, and specifying the colors “guide”,
162
// “activeGuide” and “stackGuide”
163
// 制表位的对齐白线是否显示,颜色可在主题文件里设置(guide,activeGuide,stackGuide)
164
“draw_indent_guides”: true,
165
// Controls how the indent guides are drawn, valid options are
166
// “draw_normal” and “draw_active”. draw_active will draw the indent
167
// guides containing the caret in a different color.
168
// 制表位的对齐白线,draw_normal为一直显示,draw_active为只显示当前光标所在的代码控制域
169
“indent_guide_options”: ["draw_normal"],
170
// Set to true to removing trailing white space on save
171
// 为true时,保存文件时会删除每行结束后多余的空格
172
“trim_trailing_white_space_on_save”: false,
173
// Set to true to ensure the last line of the file ends in a newline
174
// character when saving
175
// 为true时,保存文件时光标会在文件的最后向下换一行
176
“ensure_newline_at_eof_on_save”: false,
177
// Set to true to automatically save files when switching to a different file
178
// or application
179
// 切换到其它文件标签或点击其它非本软件区域,文件自动保存
180
“save_on_focus_lost”: false,
181
// The encoding to use when the encoding can’t be determined automatically.
182
// ASCII, UTF-8 and UTF-16 encodings will be automatically detected.
183
// 编码时不能自动检测编码时,将自动检测ASCII, UTF-8 和 UTF-16
184
“fallback_encoding”: “Western (Windows 1252)”,
185
// Encoding used when saving new files, and files opened with an undefined
186
// encoding (e.g., plain ascii files). If a file is opened with a specific
187
// encoding (either detected or given explicitly), blog_post setting will be
188
// ignored, and the file will be saved with the encoding it was opened
189
// with.
190
// 默认编码格式
191
“default_encoding”: “UTF-8″,
192
// Files containing null bytes are opened as hexadecimal by default
193
// 包含空字节的文件被打开默认为十六进制
194
“enable_hexadecimal_encoding”: true,
195
// Determines what character(s) are used to terminate each line in new files.
196
// Valid values are ‘system’ (whatever the OS uses), ‘windows’ (CRLF) and
197
// ‘unix’ (LF only).
198
// 每一行结束的时候用什么字符做终止符
199
“default_line_ending”: “system”,
200
// When enabled, pressing tab will insert the best matching completion.
201
// When disabled, tab will only trigger snippets or insert a tab.
202
// Shift+tab can be used to insert an explicit tab when tab_completion is
203
// enabled.
204
// 设置为enabled时,在一个字符串间按Tab将插入一个制表符
205
// 设置为true时,按Tab会根据前后环境进行代码自动匹配填补
206
“tab_completion”: true,
207
// Enable auto complete to be triggered automatically when typing.
208
// 代码提示
209
“auto_complete”: true,
210
// The maximum file size where auto complete will be automatically triggered.
211
// 代码提示的大小限制
212
“auto_complete_size_limit”: 4194304,
213
// The delay, in ms, before the auto complete window is shown after typing
214
// 代码提示延迟显示
215
“auto_complete_delay”: 50,
216
// Controls what scopes auto complete will be triggered in
217
// 代码提示的控制范围
218
“auto_complete_selector”: “source – comment”,
219
// Additional situations to trigger auto complete
220
// 触发代码提示的其他情况
221
“auto_complete_triggers”: [ {"selector": "text.html", "characters": "<"} ],
222
// By default, auto complete will commit the current completion on enter.
223
// This setting can be used to make it complete on tab instead.
224
// Completing on tab is generally a superior option, as it removes
225
// ambiguity between committing the completion and inserting a newline.
226
// 设为false时,选择提示的代码按回车或点击可以输出出来,但选择true时不会输出而是直接换行
227
“auto_complete_commit_on_tab”: false,
228
// Controls if auto complete is shown when snippet fields are active.
229
// Only relevant if auto_complete_commit_on_tab is true.
230
// auto_complete_commit_on_tab必须为true,控制代码提示的活跃度(没明白…)
231
“auto_complete_with_fields”: false,
232
// By default, shift+tab will only unindent if the selection spans
233
// multiple lines. When pressing shift+tab at other times, it’ll insert a
234
// tab character – blog_post allows tabs to be inserted when tab_completion is
235
// enabled. Set blog_post to true to make shift+tab always unindent, instead of
236
// inserting tabs.
237
// 设置为false,使用Shift + tab总是插入制表符
238
“shift_tab_unindent”: true,
239
// If true, the selected text will be copied into the find panel when it’s
240
// shown.
241
// On OS X, blog_post value is overridden in the platform specific settings, so
242
// you’ll need to place blog_post line in your user settings to override it.
243
// 选中的文本按Ctrl + f时,自动复制到查找面板的文本框里
244
“find_selected_text”: true,
245
//
246
// User Interface Settings
247
//
248
// The theme controls the look of Sublime Text’s UI (buttons, tabs, scroll bars, etc)
249
// DataPackagesTheme – DefaultDefault.sublime-theme控制软件的主题
250
“theme”: “Default.sublime-theme”,
251
// Set to 0 to disable smooth scrolling. Set to a value between 0 and 1 to
252
// scroll slower, or set to larger than 1 to scroll faster
253
// 滚动的速度
254
“scroll_speed”: 1.0,
255
// Controls side bar animation when expanding or collapsing folders
256
// 左边边栏文件夹动画
257
“tree_animation_enabled”: true,
258
// 标签页的关闭按钮
259
“show_tab_close_buttons”: true,
260
// OS X 10.7 only: Set to true to disable Lion style full screen support.
261
// Sublime Text must be restarted for blog_post to take effect.
262
// 针对OS X
263
“use_simple_full_screen”: false,
264
// Valid values are “system”, “enabled” and “disabled”
265
// 水平垂直滚动条:system和disabled为默认显示方式,enabled为自动隐藏显示
266
“overlay_scroll_bars”: “system”,
267
//
268
// Application Behavior Settings
269
//
270
// Exiting the application with hot_exit enabled will cause it to close
271
// immediately without prompting. Unsaved modifications and open files will
272
// be preserved and restored when next starting.
273
//
274
// Closing a window with an associated project will also close the window
275
// without prompting, preserving unsaved changes in the workspace file
276
// alongside the project.
277
// 热推出功能!退出时不会提示是否保存文件,而是直接退出
278
// 下次打开软件时,文件保持退出前的状态,没来得及保存的内容都在,但并没有真实的写在原文件里
279
“hot_exit”: true,
280
// remember_open_files makes the application start up with the last set of
281
// open files. Changing blog_post to false will have no effect if hot_exit is
282
// true
283
// 软件使用最后的设定打开文件,hot_exit为true时没有效果
284
“remember_open_files”: true,
285
// OS X only: When files are opened from finder, or by dragging onto the
286
// dock icon, blog_post controls if a new window is created or not.
287
// 针对OS X
288
“open_files_in_new_window”: true,
289
// Set to true to close windows as soon as the last file is closed, unless
290
// there’s a folder open within the window. This is always enabled on OS X,
291
// changing it here won’t modify the behavior.
292
// 针对OS X
293
“close_windows_when_empty”: true,
294
// 哪些文件会被显示到边栏上
295
// folder_exclude_patterns and file_exclude_patterns control which files
296
// are listed in folders on the side bar. These can also be set on a per-
297
// project basis.
298
“folder_exclude_patterns”: [".svn", ".git", ".hg", "CVS"],
299
“file_exclude_patterns”: ["*.pyc", "*.pyo", "*.exe", "*.dll", "*.obj","*.o", "*.a", "*.lib", "*.so", "*.dylib", "*.ncb", "*.sdf", "*.suo", "*.pdb", "*.idb", ".DS_Store", "*.class", "*.psd", "*.db"],
300
// These files will still show up in the side bar, but won’t be included in
301
// Goto Anything or Find in Files
302
“binary_file_patterns”: ["*.jpg", "*.jpeg", "*.png", "*.gif", "*.ttf", "*.tga", "*.dds", "*.ico", "*.eot", "*.pdf", "*.swf", "*.jar", "*.zip"],
303
// List any packages to ignore here. When removing entries from blog_post list,
304
// a restart may be required if the package contains plugins.
305
// 删除你想要忽略的插件,需要重启
306
“ignored_packages”: ["Vintage"]
307
}
上一篇:
sublime text输入法不跟随
下一篇:
sublime自定义代码段
静水缘首页

文章分类
最新文章
- nodejs私钥加密公钥解密的一个例子
- uniapp和微信小程序判断程序运行在开发或者测试或者线上版本的方法分别是什么
- electron使用electron-builder打包后模块包含exe文件执行失败
- Compile is disallowed on the main thread, if the buffer size is larger than 4KB
- better-sqlite3简介及常用操作
- nodejs 操作数据库的库
- nodejs使用http-proxy库实现多个域名代理和同时代理websocket的例子,代理包含https和http两种协议
- iis配置反向代理
- javascript伪多线程代码
- ip所在地址段判断