sublime Text共通プラグインおよびソフトウェア設定

2221 ワード

Package Controlのインストール


Ctrl+`はSublime Text 3に適用
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 
//[email protected]  
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"}
]