Skip to content

Instantly share code, notes, and snippets.

@twosixcode
Created March 6, 2012 18:40
Show Gist options
  • Select an option

  • Save twosixcode/1988097 to your computer and use it in GitHub Desktop.

Select an option

Save twosixcode/1988097 to your computer and use it in GitHub Desktop.
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" }
@rin
Copy link
Copy Markdown

rin commented Feb 4, 2015

Thank you!

Here, have a 🍺 .

@pixelbrackets
Copy link
Copy Markdown

Ah, nice one!

Note/Reminder for Linux & Windows users: use Β»CTRLΒ« instead of Β»SuperΒ« (OS X) of course

// swap the keybindings for paste and paste_and_indent
{ "keys": ["ctrl+v"], "command": "paste_and_indent" },
{ "keys": ["ctrl+shift+v"], "command": "paste" }

@yberreby
Copy link
Copy Markdown

Thanks!

@ahnbizcad
Copy link
Copy Markdown

obviously. should have done this sooner.

This is so much win.

@sepehr
Copy link
Copy Markdown

sepehr commented Jul 30, 2015

πŸ‘

@antonpodolsky
Copy link
Copy Markdown

really weird decision not make this a default behaviour.
thanks!

@vkrakovna
Copy link
Copy Markdown

Thanks a lot! This should definitely be the default setting.

@NickWoodhams
Copy link
Copy Markdown

I have probably wasted an entire week of my life manually indenting. Didn't even know what paste and indent was until today. What a relief!

@bubakazouba
Copy link
Copy Markdown

wow, why didn't they teach us that in school :'(

@webcaetano
Copy link
Copy Markdown

Awesome

@tayhalla
Copy link
Copy Markdown

Been bugging me for over a year... this afternoon finally decided to do something about it and found this. Thanks!

@trjones1
Copy link
Copy Markdown

Nice!!!

@solepixel
Copy link
Copy Markdown

Greatest thing since sliced bread!

@digitaldeus
Copy link
Copy Markdown

Who knew!!!

@ismnoiet
Copy link
Copy Markdown

Save my day thanks.

@mathiastambjergsteengaard
Copy link
Copy Markdown

Two thumbs up!!

@jeffrand
Copy link
Copy Markdown

✊

@imkost
Copy link
Copy Markdown

imkost commented Mar 22, 2016

Thank you!

@augnustin
Copy link
Copy Markdown

Any chance on replacing: swap_line_up by swap_line_up_and_indent?
http://superuser.com/questions/1089928/sublime-text-swap-line-and-indent

@jenlampton
Copy link
Copy Markdown

πŸ‘

@rcanand
Copy link
Copy Markdown

rcanand commented Jan 22, 2017

πŸ‘

@adamwgriffin
Copy link
Copy Markdown

πŸ‘

@SirCameron
Copy link
Copy Markdown

Dude, you are the King of Town!

@qmclaugh
Copy link
Copy Markdown

qmclaugh commented Mar 7, 2018

Love it

@andriy-baran
Copy link
Copy Markdown

πŸ‘

@nkn81
Copy link
Copy Markdown

nkn81 commented Aug 22, 2018

Super Siked !! Works with Sublime Version 3.1.1, Build 3176

@josezulu
Copy link
Copy Markdown

josezulu commented Mar 1, 2020

Thanks!

@frankiejarrett
Copy link
Copy Markdown

This changed my life. I already use super+shift+v for Flycut clipboard history, so mine is:

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

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