WengerK / vscode-highlight-bad-chars

Extension to highlight bad characters such as No-break space ( ) and the Greek question mark (;) in your source files.

Home Page:https://marketplace.visualstudio.com/items?itemName=wengerk.highlight-bad-chars#overview

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Feature request: setting for all non-ascii characters

halaaro opened this issue · comments

Ran into problem where a bad UTF-8 character showed up in the configuration file but was not highlighted.

Instead of trying to specify all "bad" characters, it would be nice if there was a setting to highlight all non-ascii characters or somehow a provide a short list of "good" characters.

I used this to clean up my config files:

let charRegExp = '[^' + aciiChars.join('') + ']';

I ended up with this extension especially for trying to find the "culprit" Unicode characters that breaks the code.

Sadly the extension is not yet able to deliver on this and I do not know a way to do it yet.