Cleans up your code by replacing all unusual whitespace characters with regular spaces
- Automatically replaces irregular space characters when saving a file
- Adds a "Fix Irregular Whitespace in Current File" command to manually clean up irregular whitespace in the active file
- Adds a "Fix Irregular Whitespace in Workspace" command to clean up all files in the workspace:
- Files not open in vscode will be rewritten and saved
- Others will be updated in the editor without being saved
By default, this extension automatically removes all irregular whitespace from your active file when you save. You can disable this behavior in your user settings by unchecking the following option:
Fix Irregular Whitespace: Should Apply On Save
Alternatively, you can disable it directly in your `vscode settings.json by adding the following line:
"fixIrregularWhitespace.shouldApplyOnSave": falseHandle all the irregular whitespaces from the Eslint no-irregular-whitespace rule.
https://eslint.org/docs/rules/no-irregular-whitespace
For more details about the irregular whitespaces, and a visual usage of the extension! You can check the following article:
https://allalmohamedlamine.medium.com/fixing-and-removing-irregular-spaces-984389e17132
- ✅ Add option to disable automatic cleanup on save
- ✅ Provide feedback on how many characters were replaced (if any)
Add support to all irregular whitespaces listed in eslint no-irregular-whitespace rule, as per https://eslint.org/docs/rules/no-irregular-whitespace
Initial release
