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?
VS Code allows you to quickly search over all files in the currently opened folder. Press Ctrl+Shift+F and enter your search term.
To open the Settings editor, use the following VS Code menu command: On Windows/Linux - File > Preferences > Settings. On macOS - Code > Preferences > Settings.
In Visual Studio 2022 and later, you can set Visual Studio to always keep results. Go to Tools > Options > General > Find and Replace, and select the checkbox for Keep search results by default.
If search is only searching on opened files, ensure this sneaky setting 'Search only in Open Editors' is not accidentally enabled.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With