简体   繁体   English

如何在当前打开的文件夹/工作空间中搜索所有文件?

[英]How to search for all files in the currently open folder / workspace?

I'm searching for a particular piece of text and using the Search functionality within VS Code (Ctrl+Shift+F). 我正在搜索特定文本,并使用VS Code(Ctrl + Shift + F)中的“搜索”功能。 I type some text in the search box and it shows the results only from files that are open already. 我在搜索框中键入一些文本,它仅显示已打开文件的结果。 How do I search for all the files within that workspace / open folder? 如何搜索该工作区/打开文件夹中的所有文件?

(I'm quite new to VS Code so this might be something simple) (我是VS Code的新手,所以这可能很简单)

Maybe you have the 'Use Exclude Settings And Ingore Files' toggled? 也许您已切换“使用排除设置和Ingore文件”?

VS Code全局搜索忽略文件

(dont have enough rep to comment so answering with more questions sorry) (没有足够的代表来发表评论,所以回答更多问题很抱歉)

I have the same problem, I have 50 large log files (14mb - 38mb) to search through in a single folder. 我有同样的问题,我有50个大日志文件(14mb-38mb)在单个文件夹中搜索。 I have no exclusions set and the folder containing these log files is the only folder in the workspace. 我没有设置排除项,包含这些日志文件的文件夹是工作空间中的唯一文件夹。

If I search I can only view results from open files. 如果搜索,则只能查看打开文件的结果。 I can only open 17 files at a time so I do not have a simple work around. 我一次只能打开17个文件,因此没有简单的解决方法。

Possible causes I can think of: 1. Mac OS X specific bug / setting 2. Large files stop the search functionality and only large files loaded into memory (open?) can be searched 我可能想到的可能原因:1. Mac OS X特定的错误/设置2.大文件停止了搜索功能,只能搜索加载到内存中的大文件(打开?)。

I do not know if either of these are true of your project. 我不知道您的项目是否符合上述两个条件。 Other editors that skip over large files provide a warning so perhaps this is the case but it is failing silently which is very unhelpful. 其他跳过大文件的编辑器会提供警告,所以也许是这种情况,但它默默地失败了,这是无济于事的。

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

相关问题 如何仅在 vscode 中当前打开的文件中进行搜索? - How to search only in currently open files in vscode? 如何在打开编辑器中搜索当前选定文件的文件夹 - How to search folder of the currently selected file in Open Editors VSCode 只搜索工作区中打开的文件? [2020] - VSCode only search open files in a workspace ? [2020] VSCode打开工作区文件夹热键 - VSCode open workspace folder hotkey 如何快速更改 shell 文件夹以匹配当前打开的文件 - How to quickly change shell folder to match the currently open file 在 VS Code 中:如何通过搜索名称在工作区中打开文件 - In VS Code: How to open a file in the workspace by search for its name 在 VScode 中打开搜索结果中存在的所有文件 - Open all files present in search result in VScode 在所有工作区文件中搜索选定的文本而无需按 Enter 键实际开始搜索? - Search selected text in all workspace files without having to hit the enter key to actually start the search? 如何快速搜索整个工作区中的文件(Visual Studio代码) - How to quick search files in whole workspace (Visual Studio Code) 具有工作空间/文件夹设置的任何方法仅适用于该工作空间/文件夹中的文件,而不适用于工作空间之外的随机文件吗? - Any way to have workspace/folder settings ONLY apply to files in that workspace/folder and not random files outside the workspace?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM