Search code examples
sublimetext3sublimetext2sublimetext

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??!


Solution

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