Last Updated: February 25, 2016
·
1.023K
· leek

Use "Paste & Indent" for ⌘V in Sublime Text

Use Paste and Indent for ⌘V instead of the standard 'Paste'. This adjusts your indentation to automatically match the context it's pasted in. To do this, put the following in your Key Bindings - User file:

[
  { "keys": ["super+v"], "command": "paste_and_indent" }, 
  { "keys": ["super+shift+v"], "command": "paste" } 
]

Thanks @jasbarry and @maccaw!