Sublime Forum

Exclude folders during "Find in Folders..."

#1

Is there anyway to exclude a specific sub-folder during a “Find in Folders…” operation??

0 Likes

#2

I can’t find command “Find in Folders”… if you mean “Find in Files” i can say my way:

create project and exclude from project some folders by “folder_exclude_patterns” setting in your.sublime_project:

[code]{
“folders”:

	{
		"folder_exclude_patterns":
		
			".tests",
			"tmp",
			"logs"
		],
		"path": "your_path"
	}
]

}
[/code]

if you have ST3, i recommendate you install https://github.com/titoBouzout/SideBarEnhancements then you can use command “Exclude from Project” from sidebar’s context menu by right-click on such folder.

0 Likes

#3

You can also use “-xxx” in the “where” field to subtract items to search in.

0 Likes