sublime Text經常使用插件及軟件設置

安裝 Package Control

Ctrl+`
適用於Sublime Text3php

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 Abbreviationnpm

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"}
]
相關文章
相關標籤/搜索