Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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" }
@afuggini
Copy link

afuggini commented Dec 28, 2014

Thanks!

@xander-miller
Copy link

xander-miller commented Jan 28, 2015

Awesome Tip! Tweeted it. Thanks! 👍 😄

@rin
Copy link

rin commented Feb 4, 2015

Thank you!

Here, have a 🍺 .

@pixelbrackets
Copy link

pixelbrackets commented Feb 4, 2015

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

yberreby commented Mar 31, 2015

Thanks!

@ahnbizcad
Copy link

ahnbizcad commented Jul 3, 2015

obviously. should have done this sooner.

This is so much win.

@sepehr
Copy link

sepehr commented Jul 30, 2015

👍

@antonpodolsky
Copy link

antonpodolsky commented Nov 3, 2015

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

@vkrakovna
Copy link

vkrakovna commented Nov 16, 2015

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

@NickWoodhams
Copy link

NickWoodhams commented Nov 25, 2015

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

bubakazouba commented Dec 30, 2015

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

@webcaetano
Copy link

webcaetano commented Jan 6, 2016

Awesome

@tayhalla
Copy link

tayhalla commented Jan 10, 2016

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

@trjones1
Copy link

trjones1 commented Jan 12, 2016

Nice!!!

@solepixel
Copy link

solepixel commented Jan 13, 2016

Greatest thing since sliced bread!

@digitaldeus
Copy link

digitaldeus commented Jan 13, 2016

Who knew!!!

@ismnoiet
Copy link

ismnoiet commented Feb 10, 2016

Save my day thanks.

@mathiastambjergsteengaard

Two thumbs up!!

@jeffrand
Copy link

jeffrand commented Feb 26, 2016

@imkost
Copy link

imkost commented Mar 22, 2016

Thank you!

@augnustin
Copy link

augnustin commented Jun 16, 2016

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

jenlampton commented Aug 15, 2016

👍

@rcanand
Copy link

rcanand commented Jan 22, 2017

👍

@adamwgriffin
Copy link

adamwgriffin commented Feb 22, 2017

👍

@SirCameron
Copy link

SirCameron commented Sep 26, 2017

Dude, you are the King of Town!

@qmclaugh
Copy link

qmclaugh commented Mar 7, 2018

Love it

@andriy-baran
Copy link

andriy-baran commented Apr 20, 2018

👍

@nkn81
Copy link

nkn81 commented Aug 22, 2018

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

@josezulu
Copy link

josezulu commented Mar 1, 2020

Thanks!

@fjarrett
Copy link

fjarrett commented May 21, 2020

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