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?

2

3 Answers 3

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
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.

1
  • This is a good news!
    – Toto
    Commented Dec 20, 2019 at 10:58
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

You must log in to answer this question.