2

I'm looking for an easy way to do this in VS Code. (I'm writing an interpreter so there's lots of boilerplate!)

indents are different indents are different

One strategy I found is to

add too much space

then ESC and multi-line down again,

then select word right

then select word left

and then backspace for

but I'm wondering if there is a shortcut or extension that does this in one step (instead of 2n + 5 steps).

ATOMP
  • 161

2 Answers2

1

You can try using this extension.

demostration

https://marketplace.visualstudio.com/items?itemName=yo1dog.cursor-align

0

This extension will accomplish this:

https://marketplace.visualstudio.com/items?itemName=annsk.alignment

ATOMP
  • 161