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

Highlight zero-width chars as well

fabb opened this issue · comments

commented

Yesterday I had a 0x1d unicode character in the middle of some css class name string, and it took me ages to find that out. No idea how it landed there. I finally found it because I pasted the string in Sublime text which shows special unicode characters with their code point like this:
screenshot 2018-12-05 at 08 29 13

The Highilght Bad Chars extension unfortunately would not highlight or show this character. Could that functionality be added, or is that rather something for another extension?

commented

I managed to make the control character visible by activating VSCode setting "editor.renderControlCharacters": true.
Leaving this open for further comments, maybe there are other characters that are not caught by this.

i've found a pesky 0x7F (DEL) char in a json document. This extension plus the tip above for rendering control characters makes something visible, but it would be nice to have something that told you want it was.
image

Ended up pasting the string into this website to see it - https://www.soscisurvey.de/tools/view-chars.php

image