Notepad++ excluding find filters

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?


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

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.


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