I'm working with Laravel 5.5 and I use Visual Studio Code for code editor. After last update, VS Code freaked out. The main problem is that I can't search files inside vendor
folder with ctrl+p. I can search and find any files except inside vendor
folder. Does vendor
folder disallow searching? I can't find anything related to this. Does anyone have a similar problem? Thanks!
Asked
Active
Viewed 2.2k times
31
-
Have you looked what's the default preset for `search.exclude` in your settings? – Ramiz Wachtler Dec 21 '17 at 16:48
-
@RamizWachtler, yes, I did, `"search.exclude": { "**/node_modules": true, "**/bower_components": true },` – rufatZZ Dec 22 '17 at 05:35
-
2`"search.useIgnoreFiles": false` worked for me. – Satendra Rawat Dec 25 '19 at 14:09
2 Answers
81
Fix 1.
I am not sure how many projects you have but I think you can enable this by changing the excludefile settings.
- Go to VSCode > Preferences > Settings or press ⌘,.
- Search for files.exclude and make **/.git to false.
Fix 2
OR try to search for search.useIgnoreFiles in your settings and make it false.
You can find more details here.

Pankaj Agrawal
- 1,469
- 2
- 17
- 27
-
-
11
-
Fix 1 can solve problems too. In laravel for example you may have the `resources\views\vendor\ ` directory that should NOT be ignored. However, by default vscode ignores ALL `vendor` directories. Changing `**/vendor` with `/vendor` allows to ignore only the npm vendor directory in the root path. – Andrea Mauro Apr 02 '20 at 11:29
-
What is the purpose of ignoring `**/.git`? Seems unrelated to me. – Abhi Beckert Jun 01 '21 at 23:27
-
-
Fix 1 makes no sense - OP is asking about `vendor` directory, not `.git` – brettwhiteman Sep 20 '22 at 01:18
20
- Open User Settings
- Search for: "Search: Use Ignore Files"
- Uncheck: "Controls whether to use .gitignore and .ignore files when searching for files."

Nguyen
- 336
- 2
- 4