Skip to content

Instantly share code, notes, and snippets.

@travismillerweb
Forked from harthur/snippet.md
Last active August 29, 2015 14:10
Show Gist options
  • Save travismillerweb/d56e06479a0f11a4d1ba to your computer and use it in GitHub Desktop.
Save travismillerweb/d56e06479a0f11a4d1ba to your computer and use it in GitHub Desktop.

Go to Sublime Text 2 > Preferences > Key Bindings - User and add this JSON to the file:

[
    { "keys": ["super+shift+l"],
      "command": "insert_snippet",
      "args": {
        "contents": "console.log(${1:}$SELECTION);${0}"
      }
    }
]

Inserts a console.log() at the current cursor position, tab once to jump past.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment