Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do you include git ignored files in VSCode quick search [duplicate]

Working in PHP, my vendor folder is ignored by git.

If I press Command-P, how would I include ignored files in the quick search?

like image 732
Stephen Blank Avatar asked Sep 01 '25 10:09

Stephen Blank


1 Answers

You can specify the state of inclusion for items in quick open using the following workspace (or otherwise) setting : search.exclude

Per their docs:

Configure glob patterns for excluding files and folders in fulltext searches and quick open. Inherits all glob patterns from the #files.exclude# setting

Edit: I interpreted what you were asking incompletely with my initial response, but will leave it for future question seekers and also because you can use in tandem with the following.

If you would like to make sure ignored files are present in quick open use one of the following, or both, depending on the scope of which it's ignored:

"search.useIgnoreFiles": false,
"search.useGlobalIgnoreFiles": false
like image 99
soulshined Avatar answered Sep 04 '25 16:09

soulshined