vscode-trailingspaces icon indicating copy to clipboard operation
vscode-trailingspaces copied to clipboard

Feature: Ignore by path

Open kankaristo opened this issue 6 years ago • 2 comments

Thanks for a great extension! This was one of the final things I was missing when moving from Atom to VSCode.

One feature I'd still like to see is to be able to ignore files based on their path. So, something similar to trailing-spaces.syntaxIgnore, but for file paths (a regex would be fantastic).

I'd like to highlight and "trim on save" for all of my own code, but if I'm modifying thirdparty code, I want to keep changes to a minimum.

So, if the file path has a match with the regex (thirdparty|dependencies), trimming would be turned off. Ideally. I'd like to keep highlighting on, but a simple "disable everything" toggle would work too.

kankaristo avatar Jul 14 '18 01:07 kankaristo

maybe a regex matcher for whole file path, so everyone can slove their own problems.

gggin avatar Apr 08 '19 03:04 gggin

The only missing bit for everything working without issues.

Wastus avatar Feb 19 '21 13:02 Wastus