Sumit Trehan
Sumit Trehan

Reputation: 4045

How to avoid displaying the leading and trailing spaces in vs code

enter image description here

Attached is the picture where the leading spaces are visible higlighted with red color. How to avoid displaying these whitespaces ? I have tried delete whitespaces extension. On saving the file they again come back.

Upvotes: 0

Views: 296

Answers (1)

user2311560
user2311560

Reputation: 104

What you see is changes since the last commit if your code is under version control system like git. Probably when you save your file auto code formatter restore this space according to your code format settings. You can try to disable "Format on save" option in VSCode settings.

Upvotes: 2

Related Questions