Subl-snippets

Sublime Text 2 Snippets

View the Project on GitHub andreruffert/subl-snippets

Sublime Text 2 Snippets

A collection of Sublime Text 2 snippets to simplify the development workflow.

Installation

These snippets can be installed by simply checkout the source code into Sublime Text's packages directory. The location is system specific:

For OSX

$ cd ~/Library/Application\ Support/Sublime\ Text\ 2/Packages/User
$ git clone https://github.com/andreruffert/subl-snippets.git -b master

For Windows

$ cd %APPDATA%/Sublime Text 2/Packages/User
$ git clone https://github.com/andreruffert/subl-snippets.git -b master

Snippets and Bindings

Comments

Tab trigger Description
c-gb Group comment block
For multi-line explanations and documentation
c-hb Header comment block
c-sb Section comment block
c-s Seperator comment
c-ssb Sub-section comment block

HTML

Tab trigger Description
html5 Create blank HTML5 document
h5bp Create blank h5bp document

JavaScript

Tab trigger Description
log console.log()

jQuery

Tab trigger Description
jq-ready $(document).ready(); shorthand method
jq-plugin jQuery prototypal inheritance plugin boilerplate

Misc

Tab trigger Description
editorconfig editorconfig boilerplate
packagejson package.json boilerplate