简体   繁体   English

工作区中的 VS 代码搜索仅在编辑器中打开的文件中查找

[英]VS Code search in workspace is only looking in the opened files in editor

I used to be able to search for a text in any files in the workspace in the editor in VS Code.我曾经能够在 VS Code 的编辑器中的工作区中的任何文件中搜索文本。 Now it only looks for the keyword in the opened files.现在它只在打开的文件中查找关键字。 I don't know how to restore the old settings back.我不知道如何恢复旧设置。 I want to be able to find the keyword in closed files as well as opened files.我希望能够在关闭的文件和打开的文件中找到关键字。 Does anyone know how to fix this?有谁知道如何解决这一问题?

I am getting this message, "No results found in open editors . Review your settings for configured exclusions and check your gitignore files - Open Settings - Learn More"我收到这条消息,“在打开的编辑器中找不到结果。检查配置排除项的设置并检查你的 gitignore 文件 - 打开设置 - 了解更多”

screenshot截屏

There is a setting in files options, under the "replace all" button.在“全部替换”按钮下的文件选项中有一个设置。 Disable the open book icon and you'll be able to search closed files as well.禁用打开的书本图标,您也可以搜索关闭的文件。

在此处输入图像描述

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM