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

[Feature request] Autofix gremlins

PrzemyslawKlys opened this issue · comments

Is your feature request related to a problem? Please describe.
Ever since I encountered copy/paste issue from Microsoft Teams and wasted 2 days tracking 7 zero-width character in every single line of code from Teams I've started using your Gremlin tracker on a daily basis. This is where I noticed I actually have lots of those issues. Some critical, some not so much.

image

Since you already know what most of gremlins require (auto-deletion, replacements and so on) it would be great to have ability of auto-fixing known-issues.

Describe the solution you'd like
PowerShell extension for some problems allows you to click on the problem and have it fix it automatically. Of course fixing it for all found issues in file is also an option

image

Describe alternatives you've considered
Copy/Paste :-) Manual fixes which is what I do now

Duplicate of #23