Powerful sublime text3 plugins

Sublime Text3 Plugins

jshint for sublime installation

  1. brew install nodejs
  2. npm install -g jshint
  3. open sublime & package control install jshint
  4. that’s ok

install SublimeOnSaveBuild

  1. open sublime & package control install SublimeOnSaveBuild
  2. that will build jshint once save

expand region

  1. open sublime & package control install Expand_region
  2. change the default-keymap
    { “keys”: [“super+w”], “command”: “expand_region”}

jshint gutter

  1. open sublime & package control install jshint gutter
  2. ctrl+shit+j to lint code!

PackageResourceViewer

  1. install PackageResourceViewer by package control
  2. ctrl+shift+p to use ‘open resource’
  3. find tm.theme, then add something end
1
2
3
4
5
6
7
8
9
10
11
<dict>
<key>name</key>
<string>Bracket Curly</string>
<key>scope</key>
<string>brackethighlighter.curly</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#CC99CC</string>
</dict>
</dict>

BracketHighter

  1. must have packageresourceviewer at first
  2. clear the annotation of color, and then save

Trailing Spaces

  1. install Trailing Spaces by package control
  2. configure keymap
1
2
3
4
5
6
7
8
9
10
11
12
{
"command": "toggle_trailing_spaces",
"keys": [
"ctrl+shift+d"
]
},
{
"command": "delete_trailing_spaces",
"keys": [
"ctrl+shift+t"
]
}
  1. configure trailing_spaces.sublime-settings
1
2
3
4
5
## color: invaild, comment, error
{
"trailing_spaces_highlight_color": "comment",
"trailing_spaces_trim_on_save": true
}

Centurion theme

  1. install theme Centurion first,
  2. open Preferences->Settings - User,
  3. insert {"theme": "Centurion.sublime-theme"},
  4. every time, subl3 use .sublime-theme as suffix.

install SyncedSideBar (keep sync between sidebar and opening file)

  1. install SyncedSideBar,
  2. open Preference->Key Bindings - User,
  3. configure keymap
1
2
3
4
{
"command": "reveal_in_side_bar",
"keys": ["alt+f1"]
}