[Tool usage] Some folders of VS Code are grayed out. Global search cannot find the contents of this folder

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.
insert image description here

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,
insert image description here
search for gitignore, click Search, and uncheck Controls whether to use .gitignore and .ignore files when searching for files.
insert image description here

Five, summary

This article mainly records the problem of incomplete search caused by .gitignore and the solution to improve work efficiency.

Guess you like

Origin blog.csdn.net/xuxu_123_/article/details/131662633