key – Bindings-User:个人对于快捷键的设置。同样会覆盖默认的设置
Settings-User:个人对于sublime_text的定制
{
"spell_check": true, //启用拼写检查
"caret_style": "phase", // 使光标闪动更加柔和
"draw_minimap_border": true, // 右侧缩略图边框
"font_size": 12, // 字体大小
"highlight_line": true, // 当前行标亮
"save_on_focus_lost": true, // 当前行标亮
"word_wrap": true, //自动换行
"trim_trailing_white_space_on_save": true, //自动移除行尾多余空格
"ensure_newline_at_eof_on_save": true, //文件末尾自动保留一个空行
"disable_tab_abbreviations": true, //禁用 Emmet 的 tab 键功能(请使用 ctrl+e)
"translate_tabs_to_spaces": true, //把代码 tab 对齐转换为空格对齐
"tab_size": 4, //空格数
"fade_fold_buttons": true, //显示代码块的倒三角
"bold_folder_labels": true, //侧边栏文件夹加粗
"auto_find_in_selection": true //开启选中范围内搜索
}
SideBarEnhancements
Side Bar.sublime-menu设置鼠标打开浏览器的方式(右键某html,js,css等文件,找到Open With 然后点击Edit Applications)
[
{"id": "side-bar-files-open-with",
"children":
[
{
"caption": "Chrome",
"id": "side-bar-files-open-with-chrome",
"command": "side_bar_files_open_with",
"args": {
"paths": [],
"application": "C:/Program Files (x86)/Google/Chrome/Application/chrome.exe",
//Chrome浏览器的路径 Windows中,后缀为.exe
"extensions":".*",
"args":[]
},
"open_automatically" : false
},
{
"caption": "Firefox",
"id": "side-bar-files-open-with-firefox",
"command": "side_bar_files_open_with",
"args": {
"paths": [],
"application": "C:/Program Files (x86)/Mozilla Firefox/firefox.exe",
//火狐浏览器的路径 Windows中,后缀为.exe
"extensions":".*",
"args":[]
},
"open_automatically" : false
},
{
"caption": "IE",
"id": "side-bar-files-open-with-ie",
"command": "side_bar_files_open_with",
"args": {
"paths": [],
"application": "C:/Program Files/Internet Explorer/iexplore.exe",
//Safari浏览器的路径 Windows中,后缀为.exe
"extensions":".*",
"args":[]
},
"open_automatically" : false
},
{
"caption": "Safari",
"id": "side-bar-files-open-with-safari",
"command": "side_bar_files_open_with",
"args": {
"paths": [],
"application": "D:/Program Files (x86)/Safari/Safari.exe",
//Safari浏览器的路径 Windows中,后缀为.exe
"extensions":".*",
"args":[]
},
"open_automatically" : false
},
{
"caption": "Opera",
"id": "side-bar-files-open-with-opera",
"command": "side_bar_files_open_with",
"args": {
"paths": [],
"application": "D:/Program Files/Opera/launcher.exe",
//Safari浏览器的路径 Windows中,后缀为.exe
"extensions":".*",
"args":[]
},
"open_automatically" : false
}
]
}
]
Default (Windows).sublime-keymap 设置打开浏览器的快捷键(Key Bindings – User)
{ "keys": ["ctrl+shift+1"], "command": "side_bar_files_open_with",
"args": {
"paths": [],
"application": "C:/Program Files (x86)/Google/Chrome/Application/chrome.exe",
"extensions":".*" //any file with extension
}
},
{ "keys": ["ctrl+shift+2"], "command": "side_bar_files_open_with",
"args": {
"paths": [],
"application": "C:/Program Files (x86)/Mozilla Firefox/firefox.exe",
"extensions":".*" //any file with extension
}
},
{ "keys": ["ctrl+shift+3"], "command": "side_bar_files_open_with",
"args": {
"paths": [],
"application": "C:/Program Files/Internet Explorer/iexplore.exe",
"extensions":".*" //any file with extension
}
},
{ "keys": ["ctrl+shift+4"], "command": "side_bar_files_open_with",
"args": {
"paths": [],
"application": "D:/Program Files (x86)/Safari/Safari.exe",
"extensions":".*" //any file with extension
}
},
{ "keys": ["ctrl+shift+5"], "command": "side_bar_files_open_with",
"args": {
"paths": [],
"application": "D:/Program Files/Opera/launcher.exe",
"extensions":".*" //any file with extension
}
}
HTML-CSS-JS Prettify
HTMLPrettify.sublime-settings(首先,在菜单栏里点击Preferences点击Package Settings,然后进入HTML/CSS/JS Prettify菜单,找到HTML/CSS/JS Prettify菜单下的set ‘node’ path,用Sublime Text打开进行更改windows对应的值,就是安装的node的路径)
{
// Simply using `node` without specifying a path sometimes doesn't work :(
// https://github.com/victorporof/Sublime-HTMLPrettify#oh-noez-command-not-found
// http://nodejs.org/#download
"node_path": {
"windows": "D:/Program Files/nodejs/node.exe",
"linux": "/usr/bin/nodejs",
"osx": "/usr/local/bin/node"
},
// Automatically format when a file is saved.
"format_on_save": false,
// Only format the selection if there's one available.
"format_selection_only": true,
// Log the settings passed to the prettifier from `.jsbeautifyrc`.
"print_diagnostics": true
}