1. Introduction
This article mainly introduces the reasons and solutions for the problem that the folder is grayed out and the strings in the grayed folder cannot be retrieved when searching for content during the use of VS Code, so as to improve work efficiency. for reference.
Second, the problem phenomenon
Some folders in VS Code are grayed out, and the contents of these folders cannot be retrieved by global search.
Three, the cause of the problem
Directories and files in gray indicate directories and files that are ignored in .gitignore.
At the same time, the default setting of vscode is that .gitignore will ignore the global search results of vscode at the same time.
Fourth, the solution
Modify VS Code settings: open the settings,
search for gitignore, click Search, and uncheck Controls whether to use .gitignore and .ignore files when searching for files.
Five, summary
This article mainly records the problem of incomplete search caused by .gitignore and the solution to improve work efficiency.