Skip to content

Postolova/js-snippets-st2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#Javascript snippets for sublimetext2

A bunch of snippets for lightning-like javascripting

Examples

Globals and word-based

  • w → window
  • d → document
  • a → arguments
  • l → location
  • q → querySelectorAll('')

Functions

  • f → function () {}
  • sif → Self invoked function ;(function () {}());
  • sifs → Same, but strict thing ;(function () {'use strict';}());

Loops

  • for → loop with predefined index and array

Logging (can be used from command palette to wrap javascript expression)

  • cl → console.log();
  • cw → console.warn();
  • ci → console.info();
  • ct → console.timeStamp('');

About

Javascript snippets for sublimetext2

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published