Sublime Forum

Goto Definition in excluded directories?

#1

I have this project file for a PHP project, using Git and Composer:

{
	"folders":
	[
		{
			"file_exclude_patterns":
			[
				"*.sublime-*"
			],
			"folder_exclude_patterns":
			[
				".git",
				"vendor"
			],
			"path": "."
		}
	]
}

This makes my project tree and “Goto Anything”-list very clean. However, this also means right-clicking and hitting “Goto Definition” for classes inside the vendor directory doesn’t work… I know I can not exclude the vendor directory, but that makes the “Goto Anything” list suuuper long, and it also makes searching in project files include files I’m generally not interested in.

Is there a way to tell Sublime Text to scan my vendor directory for definitions, but otherwise ignore it?

0 Likes