NetworkStudent
NetworkStudent

Reputation: 411

VsCode remove "tab" after the Ctrl+S

When I use the Vscode, I have some problem about space. I want to use define this type

#define EXAMPLE                           10

And than when I press the Ctrl+S and save my project, Vscode removes all space in the workspace. I see this type:

#define EXAMPLE 10

How can I change this feature?

Upvotes: 3

Views: 1156

Answers (1)

John Archer
John Archer

Reputation: 2495

Open your workspace or user settings and look for the following settings:

trimTrailingWhitespace

editor.trimAutoWhitespace

Set one or both to false.

If that does not work: Do you use any linter extension that could cause this behaviour?

Upvotes: 3

Related Questions