Home > front end >  Visual Studio Code - Ignore result if it contains certain string
Visual Studio Code - Ignore result if it contains certain string

Time:12-16

I try to search for all occurences with @author in a project (I am using replace in various files) but I need to exclude a certain author.

My current search string is @author, this shows many results like:

@author John Doe
@author Frank Ermantraut
@author Amasty Team

How can I exclude results with "Amasty Team" in it?

CodePudding user response:

Here is a demo with search across files working with a regex lookahead.

search with regex lookahead

  • Related