Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio Code can't find files inside vendor folder (Laravel project)

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!

like image 741
rufatZZ Avatar asked Dec 21 '17 05:12

rufatZZ


People also ask

How do I find a vendor folder in VS Code?

Go to VSCode > Preferences > Settings or press ⌘,. Search for files.

Where is vendor file in laravel?

The vendor is a subfolder in the Laravel root directory. It includes the Composer dependencies in the file autoload. php. Composer is a PHP based tool for dependency management.

How do I see all files in Visual Studio Code?

VS Code allows you to quickly search over all files in the currently opened folder. Press Ctrl+Shift+F and enter your search term. Search results are grouped into files containing the search term, with an indication of the hits in each file and its location.

How do I search for a file in a VS Code folder?

Find files by name in VSCode Simply press Ctrl + P keyboard combination to bring up the Quick Open input box and start typing. On macOS, you can press the Command ⌘ key instead of Ctrl.


2 Answers

Fix 1.

I am not sure how many projects you have but I think you can enable this by changing the excludefile settings.

  1. Go to VSCode > Preferences > Settings or press ⌘,.
  2. 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.

like image 61
Pankaj Agrawal Avatar answered Oct 12 '22 03:10

Pankaj Agrawal


  • Open User Settings
  • Search for: "Search: Use Ignore Files"
  • Uncheck: "Controls whether to use .gitignore and .ignore files when searching for files."
like image 16
Nguyen Avatar answered Oct 12 '22 03:10

Nguyen