Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save mikermcneil/569874aad9a7c71a26ac8364c09f3a15 to your computer and use it in GitHub Desktop.
Save mikermcneil/569874aad9a7c71a26ac8364c09f3a15 to your computer and use it in GitHub Desktop.
Note to self: Reminder of how to make paste & indent the default in sublime text 2 -- for future reference

Paste & Indent (Sublime Text 2)

To make "Paste & Indent" the default behavior in Sublime Text 2:

  1. CMD+SHIFT+P
  2. Type "key bindings"
  3. Choose "Key Bindings - User"
  4. Add the following:
	// swap the keybindings for paste and paste_and_indent
	// (see https://gist.github.com/twosixcode/1988097)
	{ "keys": ["super+v"], "command": "paste_and_indent" },
	{ "keys": ["super+shift+v"], "command": "paste" }

See also https://gist.github.com/twosixcode/1988097 (Thanks @twosixcode)

@mikermcneil
Copy link
Author

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