0

When I hit tab in visual studio code, the code gets indented with what seems to be "fake" spaces. If I hit tab on a new line without typing anything on the previously indented line, the spaces on the previous line seem to disappear. Is this fixable?

Mark
191k32 gold badges555 silver badges578 bronze badges
asked Mar 31, 2021 at 15:23

1 Answer 1

1

It sounds like the unnecssary (because there is no text on that previous line) is being trimmed automatically. To stop that disable the setting:

Editor: Trim Auto Whitespace

I think that'll result in what you want.

answered Mar 31, 2021 at 17:53
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.