简体   繁体   English

如何在Visual Studio Code中通过键盘输入触发的文件中进行搜索?

[英]How can I make search in files to be triggered on keyboard input in Visual Studio Code?

Search in files needs "enter" to be pressed. 搜索文件需要按“输入”。 How can I make it scan files after every single keyboard input ?? 每个键盘输入一次后,如何使它扫描文件?

Also how to prioritize code files, instead of configuration files like .json, that unfortunately pops first every single time in search in files results. 另外,如何优先处理代码文件而不是.json之类的配置文件,不幸的是,每次搜索文件结果时都会优先弹出代码文件。 Both functions are at default in Brackets, I was hoping to be it working the same in Visual Studio Code. 这两个功能在Brackets中都是默认设置,我希望它在Visual Studio Code中能以相同的方式工作。 Is there any way to configure it somehow, to make it behave like that ?? 有什么办法可以以某种方式配置它,使其表现得像这样吗?

You can use other search functions, depending on your version. 您可以使用其他搜索功能,具体取决于您的版本。

CTRL+P : Quick File Navigation
CTRL+T : Open symbol by name

Both of these functions should allow you to search as you type. 这两个功能都应允许您在键入时进行搜索。

Source: https://code.visualstudio.com/docs/editor/editingevolved#_quick-file-navigation 资料来源: https : //code.visualstudio.com/docs/editor/editingevolved#_quick-file-navigation

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

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