1

安装 Package Control

Ctrl+`
适用于Sublime Text3

import urllib.request,os; pf = 'Package Control.sublime-package'; ipp = sublime.installed_packages_path(); urllib.request.install_opener( urllib.request.build_opener( urllib.request.ProxyHandler()) ); open(os.path.join(ipp, pf), 'wb').write(urllib.request.urlopen( 'http://sublime.wbond.net/' + pf.replace(' ','%20')).read())

常用插件

神器 Emmet 的扩展用法 Wrap with Abbreviation

Emmet //代码神器
Theme-SoDaReloaded //编辑器主题
SideBarEnhancements//侧栏右键功能增强
HTML-CSS-JS Prettify //格式化代码
DocBlockr //注释神器
AlignTab //对齐
AutoFileName //自动补全url
Trailing Space //高亮显示多余空格
jQuery

//需要cnpm install eslint -g 
//jshint@2.5.0以上
SublimeLinter
SublimeLinter-contrib-eslint 

设置

"default_line_ending": "unix",
"font_size": 11,
"save_on_focus_lost": true,
"theme": "SoDaReloaded Dark.sublime-theme",
"translate_tabs_to_spaces": true,
"tab_size": 4,
"word_separators": "./\\()\"':,.;<>~!@#$%^&*|+=[]{}`~?",
"jsdocs_extend_double_slash": false

快捷键映射

[
    {"keys": ["enter"], "command": "move", "args": {"by": "characters", "forward": true}, "context":
        [
            { "key": "following_text", "operator": "regex_contains", "operand": "^[)\\]\\>\\'\\\"\\ %>\\}\\;\\,]", "match_all": true },
            { "key": "preceding_text", "operator": "not_regex_match", "operand": "^.*\\{$", "match_all": true  },
            { "key": "auto_complete_visible", "operator": "equal", "operand": false }
        ]
    },
  //以下为Trailing Space插件 一键删除多余空格 复制后删除此行
    { "keys":["ctrl+alt+d"], "command":"delete_trailing_spaces"},
    { "keys":["ctrl+alt+o"], "command":"toggle_trailing_spaces"}
]

jeanChueng
174 声望30 粉丝

优秀的设计师,就像是百花齐放的花丛中,最引人瞩目的一朵花;伟大的艺术家,就像是寸草不生的山顶上,供人仰望的一棵树。


引用和评论

0 条评论