Gremlins tracker for Visual Studio Code
This Visual Studio Code extension reveals some characters that can be harmful because they are invisible or looking like legitimate ones.
You can also use the “Unicode code point of current character” extension to show information about the character under cursor in the status bar.
Adding new gremlins characters
You can configure the list of characters and how they are shown under user settings key
Please help enhance the extension by suggesting new default characters, through Pull Requests or Issues.
Displaying gremlins in the Problems pane
By default, gremlins will be highligted in the text editor and an icon will be displayed in the gutter for each line with at least one gremlin. You can toggle whether gremlins also show in the Problems pane with user settings key
Standing on the shoulders of giants
VS Code Gremlins was initialy heavily inspired by Sublime Gremlins, a Sublime Text 3 plugin to help identify invisible and ambiguous Unicode whitespace characters (zero width spaces, no-break spaces, and similar.).
I later discovered the “Gremlins” name had already been used a long time before, in some editors:
Here's how it looks in recent versions: