My Sublime cheatsheet
Packages to install
- Package Control website
- SublimeLinter Git Site
- Git support git repo - package control: git
- sublime-jsdocs git repo - package control: DocBlockr
- Alignment website - package control:alignment
ctrl+alt+a
orCmd+ctrl+a
- JsFormat Git Site - Package Control: JsFormat
Ctrl+Alt+f
User configuration
Edit user settings Cmd + ,
.
Sublime Linter
- jshint possible options in this link:
- Create and edit file:
.config/sublime-text-2/Packages/User/SublimeLinter.sublime-settings
{
"javascript_linter": "jshint",
// jshint: options for linting JavaScript. See http://jshint.com/#docs for more info.
// By deault, eval is allowed.
"jshint_options":
{
"evil": true,
"regexdash": true,
"browser": true,
"wsh": true,
"trailing": true,
"sub": true,
"latedef": true,
"undef": true,
"unused": true,
"eqeqeq": false,
"devel": true,
"jquery": true,
"predef": [
"global"
]
}
}