How can I get the global search in VSCode to work?

Viewed 5983

I encounter a question while I am using Visual Studio Code on Mac, I used to kill a process related to the search function on VS Code(Sorry I forgot the process name) because of the high CPU usage.

After that, I found that the global search does not work in VS Code any more, sometimes I really need this function to search file or open file in a quick way; I have searched many times but can not get the solution. So I go to here and asking for help.

When I use command + p to search file by name, the rate of process is always on loading, it can only list those files which I have opened, other files even they are matched by name will not be shown in list.

So I want to make search functions well as usual, how could I do?

2 Answers

If search is only searching on opened files, ensure this sneaky setting 'Search only in Open Editors' is not accidentally enabled.

enter image description here

Related