Skip to content

Instantly share code, notes, and snippets.

@kenvunz
Forked from twosixcode/gist:1988097
Created January 21, 2013 02:37
Show Gist options
  • Save kenvunz/4583262 to your computer and use it in GitHub Desktop.
Save kenvunz/4583262 to your computer and use it in GitHub Desktop.
// swap the keybindings for paste and paste_and_indent
{ "keys": ["super+v"], "command": "paste_and_indent" },
{ "keys": ["super+shift+v"], "command": "paste" }
@kenvunz
Copy link
Author

kenvunz commented Jan 21, 2013

Sublime Text 2 has a "Paste and Indent" menu item (⌘⇧V) which automatically applies correct indentation to pasted text (like pasting in TextMate).

You can effectively make smart-pasting the default by swapping the ST2 keybindings for "Paste" and "Paste and Indent." Go to Preferences > Key Bindings - User or from the Command Palette (⌘⇧P) type "key bindings."

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