如何使用VS代码浏览器进行导航 [英] How to navigate with VS code explorer

查看:449
本文介绍了如何使用VS代码浏览器进行导航的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是有关VS代码浏览器窗口导航的问题.

This is a question about the VS code explorer window navigation.

在Windows资源管理器应用程序中,我可以立即向下导航到我选择的任何文件. 如果Windows资源管理器窗口以升序显示我的文件夹或文件,我可以通过键入要查找的文件/文件夹的首字母来快速选择下面的任何条目.例如,如果我键入"C",则选择立即下降到以C开头的第一个文件/文件夹.据我所知,这一直是默认的Windows导航. 那么我能在VS代码浏览器中做到这一点吗? 我的项目相当长,必须向下滚动才能说第50(或第100)个文件有点麻烦.那么,此功能或类似功能在VS代码中可用吗?资源管理器窗口以升序显示文件/文件夹,因此应该可行.如果这不是VS代码的功能,那么在VS代码浏览器中导航的推荐方法是什么?

In the Windows Explorer application, I can instantly navigate down to any file that I choose. If the windows explorer window shows my folders or files in ascending name sequence, I can quickly select any of the entries below by typing the first letter of the file/folder that I'm looking for. For instance, if I type in "C", the selection instantly goes down to the first file/folder that begins with C. This has been the default Windows navigation for as far back as I can remember. So am I able to do this in the VS code explorer? My projects are rather long and having to scroll down to say the 50th(or 100th) file is kind of a pain. So is this feature or something like it available in VS code? The explorer window shows the file/folders in ascending sequence so this should be possible. If this is not a feature in VS code, what is the recommended way to navigate throughout the VS code explorer?

推荐答案

请参见资源管理器中的键盘导航:

现在树中有三种不同类型的键盘导航:简单,突出显示和过滤器.在高亮和过滤器中,键入树将在树的顶部显示一个小部件(控件),表明您现在正在树上导航:

There are now three different types of keyboard navigation in trees: simple, highlight, and filter. In both highlight and filter, typing in a tree will display a widget (control) at the top of the tree, which indicates that you are now navigating the tree:

[请参阅上面的链接中的演示.]因此,如果键入资源管理器具有焦点的文件夹或文件,则可以过滤或突出显示匹配的文件夹或文件.

[see the demo at the link above.] So you can filter or highlight matching folders or files if you type which the explorer has focus.

尝试此设置:

"workbench.list.keyboardNavigation": "filter" 
     // see other options under this setting: highlight and simple

,资源管理器将筛选出所有不匹配的文件夹/文件.我希望它会自动打开其中包含匹配文件的文件夹,但不会.该文件夹将突出显示或通过过滤器,但无法打开.

and explorer will filter out all non-matching folders/files. I wish it would automatically open those folders with matching files within but it doesn't. The folder is highlighted or passes the filter but it doesn't open.

在此演示中(使用filter设置),首先我按 Ctrl - Shift - E 来获得Explorer焦点(或您可以在资源管理器中的任意位置单击)并开始输入.

In this demo (using the filter setting), first I pressed Ctrl-Shift-E to get Explorer focus (or you could just click anywhere in the explorer) and started typing.

转义将清除搜​​索并返回完整的资源管理器树.

Escape will clear the search and return the full explorer tree.

这篇关于如何使用VS代码浏览器进行导航的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆