Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VsCode remove "tab" after the Ctrl+S

Tags:

vs-code

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?

like image 470
NetworkStudent Avatar asked Sep 19 '26 01:09

NetworkStudent


1 Answers

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?

like image 171
John Archer Avatar answered Sep 20 '26 15:09

John Archer



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!