nhoizey / vscode-gremlins

Gremlins tracker for Visual Studio Code: reveals invisible whitespace and other annoying characters

Home Page:https://marketplace.visualstudio.com/items?itemName=nhoizey.gremlins

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add a "zap gremlins" feature to automate gremlins removal

nhoizey opened this issue · comments

On a side note but related would be nice if there was a change all option when the gremlins are highlighted. BBEdit has a feature called "Zap Gremlins" that does this. Its basically just a regex find and replace with a dialog. May be out of scope for this project but would love that ability. I have had smart quotes/curly quotes cost me hours trying to debug errors from those things popping up in code.

There is an extension that I am going to use for this purpose just wish it was on github so I could contribute :( Replace Smart Characters

Originally posted by @disaac in #8 (comment)

commented

i was going to request the exact same thing

@ctf0 thanks for the link, I'll see how I can add this feature to Gremlins.

I've started looking at this one. I'll have a PR up sometime in the next week that will at least have zapping current document.

PR is ready, just waiting on the language-overridable PR as it builds upon the configuration changes made there.

Branch still ready, just waiting on #160, as I built the PR off of that branch. I can undo those changes if necessary, but just need confirmation.