Skip to content

Instantly share code, notes, and snippets.

View andypotts's full-sized avatar

Andy Potts andypotts

View GitHub Profile
@andypotts
andypotts / gist:1096a853b46c02f378c9e29521cf9154
Created May 25, 2017 15:51 — forked from twosixcode/gist:1988097
Make "Paste and Indent" the default paste in Sublime Text 2
// swap the keybindings for paste and paste_and_indent
{ "keys": ["super+v"], "command": "paste_and_indent" },
{ "keys": ["super+shift+v"], "command": "paste" }
@andypotts
andypotts / snippet.md
Last active July 20, 2017 09:40 — forked from harthur/snippet.md
console.log() + var_dump() key bindings for Sublime Text. Cmd + Shift + L.

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}"
      }, "context":
 [