Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sublime exclude file extension in "File Search"

I want to exclude a particular extension while doing a Search in Files... search:

  • Ctrl + Shift + f in Windows/Linux
  • Cmd + Shift + f in MacOS

I know it would be convenient to include extension rather excluding but have so many extensions lets say 10 but it is tough to include 9 extensions like .py,.xml,*.html...

I only want to ignore file 1 extension.

anybody have any solutions??!

like image 214
DexJ Avatar asked Aug 30 '17 06:08

DexJ


1 Answers

The option to exclude a file extension in a 'Find in Files...' search is built into the tool.

Click on the ellipsis (...) to the right of the 'Where" box and one of the options is Add Exclude Filter.

Sublime Text screenshot

This seems to do exactly what I think you are asking for.

like image 98
jwpfox Avatar answered Nov 02 '22 16:11

jwpfox