Normalizes whitespace in files
Press F1 and narrow down the list commands by typing extension
. Pick Extensions: Install Extension
.
Simply pick the whitespace
extension from the list.
The extension automatically runs on file save which is automatically handled by VS Code at regular intervals.
The extension can also be executed on demand
- Mac: Shift + Command + Space
- Windows: Shift + Control + Space
The rules for normalizing whitespace come from the project's .vscode/settings.json
file,
which has two properties:
- insertSpaces
- tabSize
This extension also plays nicely with the vscode-editorconfig extension.
I have tested this plugin on files up to 70K lines and it performs pretty well, but if there is anything that can be improved please send a PR.
Have fun! 🍻