最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - How can I get the global search in VSCode to work? - Stack Overflow

programmeradmin3浏览0评论

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?

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?

Share Improve this question edited Dec 19, 2021 at 22:32 cigien 60.2k11 gold badges81 silver badges121 bronze badges asked Jul 11, 2017 at 3:13 MongooseMongoose 831 gold badge1 silver badge3 bronze badges 2
  • I think I've had problems like this before when I overwrote a search exclude list and left out node_modules or vendor which quickly fill with massive amounts of files. I would check your user and workspace preferences to make sure. – Christopher Commented Jul 11, 2017 at 3:22
  • Yes, It really works, After I removed the search.exclude config in my preferences and restart the VSCode, The problem has been solved, Thank u very much :) – Mongoose Commented Jul 11, 2017 at 7:06
Add a comment  | 

2 Answers 2

Reset to default 16

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

I encountered the same issue about 1.5 months ago. Reinstalling fixed the issue for me, but as indicated this reported bug it can have something to do with your search.exclude glob pattern as well. If reinstalling does not fix the issue for you, that linked issue might be the problem you're experiencing.

发布评论

评论列表(0)

  1. 暂无评论