Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Difference between Editor: Trim Auto Whitespace and Files: Trim Trailing Whitespace in VSCode Settings

What is the difference between the Editor: Trim Auto Whitespace and Files: Trim Trailing Whitespace settings in VSCode? They seem like redundant settings, so I want to understand how they differ.

like image 944
Bash Avatar asked Nov 15 '25 10:11

Bash


1 Answers

If you go ahead to Code >> Preferences >> Settings >> Search 'Trim'.

Here's what is mentioned:

Editor: Trim Auto Whitespace - Remove trailing auto inserted whitespace

Files: Trim Trailing Whitespace: - When enabled, will trim trailing whitespace when saving a file.

The significance here is that they are both pretty similar. The major difference is that the 'Files: Trim Trailing Whitespace" option trims your whitespace upon saving a file.

like image 163
heyitsalec Avatar answered Nov 18 '25 21:11

heyitsalec



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!