Visual Studio 代码无法在 vendor 文件夹中找到文件(Laravel 项目)

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

我正在使用 Laravel 5.5 并使用 Visual Studio Code 作为代码编辑器。上次更新后,VS Code 吓坏了。主要问题是我无法使用 ctrl+p 搜索 vendor 文件夹中的文件。我可以搜索并找到 vendor 文件夹以外的任何文件。 vendor 文件夹是否不允许搜索?我找不到与此相关的任何内容。有没有人有类似的问题?谢谢!

修复 1

我不确定您有多少个项目,但我认为您可以通过更改排除文件设置来启用它。

  1. 转到 VSCode > 首选项 > 设置或按 ⌘,。
  2. 搜索 files.exclude 并将 **/.git 设置为 false。

修复 2

或尝试在您的设置中搜索 search.useIgnoreFiles 并将其设为 false。

您可以找到更多详细信息 here

  • 打开用户设置
  • 搜索:"Search: Use Ignore Files"
  • 取消选中:"Controls whether to use .gitignore and .ignore files when searching for files."