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" }
@ahnbizcad

Copy link
Copy Markdown

obviously. should have done this sooner.

This is so much win.

@sepehr

sepehr commented Jul 30, 2015

Copy link
Copy Markdown

πŸ‘

@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

imkost commented Mar 22, 2016

Copy link
Copy Markdown

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

rcanand commented Jan 22, 2017

Copy link
Copy Markdown

πŸ‘

@adamwgriffin

Copy link
Copy Markdown

πŸ‘

@SirCameron

Copy link
Copy Markdown

Dude, you are the King of Town!

@qmclaugh

qmclaugh commented Mar 7, 2018

Copy link
Copy Markdown

Love it

@andriy-baran

Copy link
Copy Markdown

πŸ‘

@nkn81

nkn81 commented Aug 22, 2018

Copy link
Copy Markdown

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

@josezulu

josezulu commented Mar 1, 2020

Copy link
Copy Markdown

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