Skip to content

Instantly share code, notes, and snippets.

@thanpolas
Created July 3, 2012 14:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thanpolas/3040195 to your computer and use it in GitHub Desktop.
Save thanpolas/3040195 to your computer and use it in GitHub Desktop.
Packages to install, configs, hints & tips

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 or Cmd+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"
        ]
    }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment