- Open VS Code.
- Click on File.
- Then find Preferences -> settings.
- Click on the Text Editor in the left side menu.
- Locate the Trim Auto Whitespace Setting.
- Check or uncheck: Remove trailing auto inserted whitespace.
How To Enable/Disable Trim Auto Whitespace Editor VSCode
Related Guides