16

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?

Gary Barrett
  • 5,498

3 Answers3

11

Note, as of December 5th, 2019, Notepad++ 7.8.2 now supports exclude filters. The help documentation describes exclude filters in the Find in Files tab section.

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.

Gary Barrett
  • 5,498
n00b
  • 933
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
quickcel
  • 4,919
2

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

aName
  • 119