Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to prevent VS Code from auto-deleting tabs on an empty line?

When I use some tabs on a line without any text,VS Code always auto deletes my tabs.

How to prevent this VSCode action?

Here is the state

like image 974
XJ.Chen Avatar asked Dec 13 '19 10:12

XJ.Chen


People also ask

How do I change my tab settings in VS Code?

To open the Settings editor, use the following VS Code menu command: On Windows/Linux - File > Preferences > Settings. On macOS - Code > Preferences > Settings.


1 Answers

There is a checkbox option in VSCode settings called Editor: Trim Auto Whitespace and Files: Trim Trailing Whitespace

If you uncheck that then it should stop

like image 107
Aad Avatar answered Oct 23 '22 05:10

Aad