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).

1

2 Answers

This extension will accomplish this:

You can try using this extension.

demostration

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy