Highlight Problem Characters in Code
Use Vscode Gremlins to help flag characters that shouldn’t be in your code.
You can give a range to flag multiple characters with a single rule.
For example, if using macOS and the option key is set to a modifier, it’s easy to accidentally include a Latin-1 Supplemental Character that can be difficult to notice in your code.
To catch the entire range, the Latin-1-Supplement link provided shows a unicode range of:
Configure a rule like this:
I submitted this as a PR to project repo but figured I’d document here as well in case it takes a while to get merged.