简体   繁体   English

如何导航VS Code Explorer并仅通过键盘打开文件?

[英]How can I navigate the VS Code Explorer & open a file via keyboard only?

I'm doing a code review of a project, which means cycling through all the files in it. 我正在对项目进行代码审查,这意味着循环遍历其中的所有文件。 I want to keep my hands on the keyboard but neither do I want to have to CMD + P and type in the name of each file. 我想把手放在键盘上,但我也不想使用CMD + P并输入每个文件的名称。

I've bound CMD + K , CMD + E to workbench.files.action.focusFilesExplorer which enables me to easily get to the Explorer, but then I can only explorer.openToSide , which isn't exactly what I want. 我已经将CMD + KCMD + E绑定到workbench.files.action.focusFilesExplorer ,这使我能够轻松访问资源管理器,但之后我只能explorer.openToSide ,这不是我想要的。 I want to be able to open them directly, full-screen even if I have other windows open. 即使我打开其他窗户,我希望能够全屏直接打开它们。

Are there commands for this that I can bind to? 是否有我可以绑定的命令? I suspect this isn't a feature yet. 我怀疑这还不是一个功能。

To open a file, just press Enter once you've selected it. 要打开文件,只需在选择后按Enter键即可。 It's bound to the list.select command by default. 它默认绑定到list.select命令。 This also works for expanding / collapsing folders. 这也适用于扩展/折叠文件夹。

By default on a mac you can use cmd + down to open the file. 默认情况下,您可以使用cmd + 向下打开文件。

Pressing Enter will edit the filename. Enter将编辑文件名。

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

相关问题 如何添加键盘快捷键以从文件资源管理器打开文件夹上的 VS Code? - How do I add a keyboard shortcut to open VS Code on the folder from File Explorer? 如何使用VS代码资源管理器进行导航 - How to navigate with VS code explorer 如何在 Mac 上打开的 VS Code 打开窗口中导航 - how to navigate among open VS Code open windows on Mac 如何禁用 VS 代码中的默认键盘快捷键? - how can I disable the default keyboard shortcut in VS code? OSX上的VSC-如何使用键盘在VSC Explorer中打开所选文件? - VSC on OSX - How to open the selected file at VSC Explorer using Keyboard? 如何在 VS Code 中跳转到文件资源管理器? - How to jump to file explorer in VS Code? 如何使用 VS Code 以只读模式打开文件 - How to open a file in read-only mode with VS Code 什么是 VS Code 键盘快捷键,可将窥视的文件打开到选项卡中 - What is VS code Keyboard shortcut to open a peeked file into a tab 如何将 VS Code 配置为仅突出显示资源管理器中的文件但不滚动到该文件(如 autoReveal 所做的那样)? - How to configure VS Code to only highlight a file in explorer but do not scroll to it(like autoReveal does)? 如何仅使用密钥在vs代码中创建当前资源管理器目录中的文件? - How to create file in current explorer directory in vs code using only keys?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM