官网:http://www.sublimetext.com/
插件
- 在安装插件之前先安装
package control
import urllib.request,os,hashlib; h = '6f4c264a24d933ce70df5dedcf1dcaee' + 'ebe013ee18cced0ef93d5f746d80ef60'; pf = 'Package Control.sublime-package'; ipp = sublime.installed_packages_path(); urllib.request.install_opener( urllib.request.build_opener( urllib.request.ProxyHandler()) ); by = urllib.request.urlopen( 'http://packagecontrol.io/' + pf.replace(' ', '%20')).read(); dh = hashlib.sha256(by).hexdigest(); print('Error validating download (got %s instead of %s), please try manual install' % (dh, h)) if dh != h else open(os.path.join( ipp, pf), 'wb' ).write(by)
Emmet 前端开发的神器, 快速生成html和css代码
ConvertToUTF8 解决乱码问题
bracketHighlighter 自动高亮匹配到的
标签
()
{}
[]
DocBlockr 快速生成注释
SideBarEnhancements 侧边栏右键功能增强插件
vintageous vintage的增强插件
Terminal 快速打开命令行
A File Icon 文件图标
material color scheme 代码配色
主题推荐
- Material Theme
快捷键配置
[
// toggle sidebar
{ "keys": ["ctrl+alt+k"], "command": "toggle_side_bar" },
// search file
{ "keys": ["ctrl+shift+n"], "command": "show_overlay", "args": { "overlay": "goto", "show_files": true } },
// upper/lower case
{ "keys": ["alt+u"], "command": "upper_case" },
{ "keys": ["alt+l"], "command": "lower_case" },
// open commmd panel
{ "keys": ["ctrl+enter"], "command": "auto_complete" },
{
"keys": ["ctrl+cnter"], "command": "replace_completion_with_auto_complete", "context":
[
{ "key": "last_command", "operator": "equal", "operand": "insert_best_completion" },
{ "key": "auto_complete_visible", "operator": "equal", "operand": false },
{ "key": "setting.tab_completion", "operator": "equal", "operand": true }
]
},
// open terminal
{ "keys": ["ctrl+t"], "command": "open_terminal" },
{ "keys": ["ctrl+alt+t"], "command": "open_terminal_project_folder" },
]
其他配置
{
"always_show_minimap_viewport": true,
"auto_complete": false,
"auto_complete_delay": 30,
"caret_extra_bottom": 0,
"caret_extra_top": 0,
"caret_extra_width": 0,
"caret_style": "blink",
"color_scheme": "Packages/Color Scheme - Default/Monokai.sublime-color-scheme",
"draw_minimap_border": true,
"enable_tab_scrolling": true,
"fade_fold_buttons": false,
"font_face": "Microsoft Yahei Mono",
"font_options":
[
"no_italic"
],
"font_size": 18,
"highlight_line": true,
"ignored_packages":
[
],
"indent_guide_options":
[
"draw_active"
],
"indent_to_bracket": true,
"line_padding_bottom": 10,
"line_padding_top": 10,
"overlay_scroll_bars": "disabled",
"save_on_focus_lost": true,
"shift_tab_unindent": true,
"show_definitions": false,
"show_encoding": true,
"show_full_path": false,
"theme": "Material Monokai.sublime-theme",
"word_wrap": false
}