[英]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 + K , CMD + 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.