13

In Notepad++ I want to search in all file types except one.

For instance: I want to search in all files but not .class files.

Can the Notepad++ filter can be configured to work this way?

2
5

Doesn't look like it can be easily configured to work this way. Here are a couple of options for you

  1. Use the filters dialog box to include all file extensions except the one you don't want (could get a bit long): Notepad++ Find in Files Filters
  2. Figure out how to use some code to write a plugin that will do it for you: https://stackoverflow.com/questions/2188070/notepad-file-filters
2
8

Note, as of December 5th, 2019, Notepad++ 7.8.2 now supports exclude filters.

For example to exclude exe, zip and jar files, your 'find in files' filter will look like this;

*.* !*.exe !*.zip !*.jar

Relevant code change here.

1
  • This is a good news!
    – Toto
    Dec 20 '19 at 10:58
1

her is a tip that can help :
you hide the folder that you want to exclude and then uncheck the In hidden folders in notepad so that it doesn't search in hidden folders: enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy