如何在VS Code中仅使用键盘打开面包屑下拉菜单?

huangapple go评论47阅读模式
英文:

How can I open the breadcrumbs dropdown using only the keyboard in VS Code?

问题

在VS Code中,是否有一种方式可以通过键盘来打开文件选择器下拉框,即这个:如何在VS Code中仅使用键盘打开面包屑下拉菜单?,以便我可以使用方向键+回车键来切换文件?
1: https://i.stack.imgur.com/axH6G.png

英文:

In VS Code, Is there a way to open up the file selector dropdown, i.e. this:
如何在VS Code中仅使用键盘打开面包屑下拉菜单?

with just the keyboard- such that I will be able to use the arrow keys + enter to switch files?

答案1

得分: 2

要使用键盘访问面包屑,您可以使用以下命令(在命令面板中或使用相应的快捷键):

  • 聚焦面包屑(在Windows和Linux上,<kbd>ctrl</kbd>+<kbd>shift</kbd>+<kbd>;</kbd>。在macOS上,使用<kbd>cmd</kbd>而不是<kbd>ctrl</kbd>)。然后,您可以使用箭头键以及回车和退出键进行导航。

  • 聚焦并选择面包屑(在Windows和Linux上,<kbd>ctrl</kbd>+<kbd>shift</kbd>+<kbd>.</kbd>。在macOS上,使用<kbd>cmd</kbd>而不是<kbd>ctrl</kbd>)。然后,您可以使用箭头键进行导航。

相关源代码(使用ctrl+f查找"register2")。

英文:

To access the breadcrumbs using the keyboard, you can use the following commands (in the command palette, or use the corresponding keybinding):

  • Focus Breadcrumbs (On Windows and Linux, <kbd>ctrl</kbd>+<kbd>shift</kbd>+<kbd>;</kbd>. On macOS, use <kbd>cmd</kbd> instead of <kbd>ctrl</kbd>). You can then use the arrow keys and the enter and escape keys to navigate.

  • Focus and Select Breadcrumbs (On Windows and Linux, <kbd>ctrl</kbd>+<kbd>shift</kbd>+<kbd>.</kbd>. On macOS, use <kbd>cmd</kbd> instead of <kbd>ctrl</kbd>). You can then use the arrow keys to navigate.

Corresponding source code (ctrl+f for "register2").

答案2

得分: 0

前往设置 > 键盘快捷键,然后搜索“聚焦文件资源管理器”,设置任何按键绑定(例如,ctrl+alt+f),以便前往文件资源管理器,然后您可以使用键盘箭头键浏览文件。

英文:

Go to settings>keyboard shortcuts
then search for "Focus on File Explorer" and put any keybinding (e.g. ctrl+alt+f) as you like to go to file explorer and then you can navigate through the files using keyboard arrow keys.

huangapple
  • 本文由 发表于 2023年4月4日 15:16:36
  • 转载请务必保留本文链接:https://go.coder-hub.com/75926494.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定