[英]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的新手,所以这可能很简单)
(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.