sublime常用设置
# 缩进设置, 菜单 -> View -> Indentation
使用4个空格作为缩进
# 换行符格式,菜单 -> View -> Line Endings
Windows: \r\n, CR&LF
Unix: \n, LF
Mac OS 9: \r, CR
# 换行宽度
菜单 -> View -> Word Wrap Column
# 换行参考线
【使用json格式进行设置】
# 菜单 -> Preferences -> Settings
# 在标签中打开新文件,而不是新窗口
"open_files_in_new_window": “never”,
# 不检查更新
"update_check": false
# 文件tab相关
"file_tab_style": "rounded",
"file_tab_style": "square",
"show_tab_close_buttons": false,
"show_tab_close_buttons_on_left": false,
"enable_tab_scrolling": true,
"hide_tab_scrolling_buttons": true, --仅仅隐藏文件tab滚动按钮, 实际还是能滚动
"hide_new_tab_button": false,
"auto_hide_tabs": true, --编辑过程中隐藏文件tab
"highlight_modified_tabs": true,
# 在状态栏显示相关信息
"show_encoding": true,
"show_line_endings": true,
"show_indentation": true,
"show_syntax": true,
# 行号
"line_numbers": true,
"line_numbers": false,
"gutter": false,
# 折叠按钮
"fold_buttons": true,
"fade_fold_buttons": false, --false总是显示, true鼠标移开就隐藏
# 高亮当前行
"highlight_line": false,
"highlight_line": true,
"highlight_line_number": false,
# 光标
"caret_extra_bottom": 0,
"caret_extra_width": 8,
"block_caret": true,
# 显示tab
"draw_white_space": ["selection"], --选中的地方显示tab
"draw_white_space": ["trailing"], --显示行尾的tab
"draw_white_space": ["isolated"], --显示空行上的tab
"draw_white_space": ["all_tabs"], --显示所有非空格tab
"draw_white_space": ["all_mixed"], --设置了4个空格作为tab, 所有的真tab就会被显示出来;如果设置了真tab作为tab,所有4个空格的tab会被显示出来
"draw_white_space": ["leading_mixed"], --行首的显示出来了
"draw_white_space": ["isolated_mixed"], --空行上的显示出来了
"draw_white_space": ["selection_mixed_tabs"], --选中的地方不满足显示出来了
"draw_white_space": ["all"], --显示所有真tab和4个空格tab
# 默认编码
"default_encoding": "UTF-8",
# 自动补全
"auto_complete": true,
"auto_complete_delay": 50,
"auto_complete_cycle": false,
"auto_complete_use_index": true,
"auto_complete_use_history": false,
# 隐藏ui
"auto_hide_menu": false,
"auto_hide_tabs": false,
"auto_hide_status_bar": false,
# 拖拽文本
"drag_text": false,
# 重新加载外部改动文件
"reload_file_on_change": true,
"always_prompt_for_file_reload": false,
"bold_folder_labels": false,
【我的设置】
{ "show_tab_close_buttons": false, "highlight_modified_tabs": true, "show_encoding": true, "show_line_endings": true, "auto_hide_status_bar": true, "drag_text": false, "bold_folder_labels": true, "enable_tab_scrolling": false, "hide_new_tab_button": true, "caret_style": "blink", "caret_extra_top": 1, "caret_extra_bottom": 1, "draw_white_space": ["all_mixed"], "file_exclude_patterns": ["*.meta", "*.pyc", "*.pyo", "*.exe", "*.dll", "*.obj","*.o", "*.a", "*.lib", "*.so", "*.dylib", "*.ncb", "*.sdf", "*.suo", "*.pdb", "*.idb", ".DS_Store", ".directory", "desktop.ini", "*.class", "*.psd", "*.db", "*.sublime-workspace"], "ignored_packages": [ "Vintage", ], }