1

Is there a way where i can rearrange/ reorder multiple lines in VSCODE

For eg; I have something like this, (many lines). Not necessarly at the start of the line.

    =
  = 
= 
   =
     =

and i would like it be rearranged as,

=
=
=
=

I know some tricks, select multiple lines with ctrl + alt + up/down key and then move or indent using ctrl + ] but it is not efficient. Tab + space customisation is explained here

Is there a specific key to do this in one go? Thanks for your help.

der_radler
  • 549
  • 1
  • 6
  • 17

1 Answers1

2

For this case, I believe selecting all the content you wish to rearrange and holding the shift key while pressing the tab key will move everything back. Continue pressing the tab key until you are satisfied with the result.

Jeremy Caney
  • 7,102
  • 69
  • 48
  • 77