This bundle is a "fork" of the bundle included with Sublime Text 2, which is itself mostly a TextMate bundle.
console
has been removed as a pattern match. This cleans up the Goto... window substantially.
Removed unconditional true
and trailing ;
.
Everybody has their preferred for
loop style. This is mine. For better or worse, I tend to share Douglas Crockford's aversion to the ++
operator in JavaScript due to its syntactical proximity to adding a coerced string to a number.
These are some snippets that I've added that I find useful. The snippet tab trigger follows the snippet file name if one is enabled.
Insert a block comment, usually used for a function or other JavaScript annotation.
Insert a console.log();
statement.
Insert a console.log('var: ', var);
statement, where the cursor is mirrored on var
. This makes simple console logging of variables easy to write and read in the console
.
Insert a console.group();
and console.groupEnd();
statement, finally placing the cursor between them.
Some snippets I just do not find useful at all.
This has been modified and renamed. See Modified Snippets above.