简体   繁体   English

VSCode - 使用键盘在文件树中导航

[英]VSCode - navigate in the file tree with the keyboard

I love VSCode but I am really missing one feature from its big brother Visual Studio.我喜欢 VSCode,但我真的错过了它的老大哥 Visual Studio 的一项功能。

In Visual Studio you load the file in the editor when you navigate to it and if you press enter you jump to into the editor and can start editing the file.在 Visual Studio 中,当您导航到该文件时,您将在编辑器中加载该文件,如果您按 Enter,您将跳转到编辑器并可以开始编辑该文件。

How can I do the same in VSCode?我如何在 VSCode 中做同样的事情?

VSCode keyboard shortcuts reference VSCode 键盘快捷键参考

You can do it by pressing CTRL + SHIFT + E .您可以通过按CTRL + SHIFT + E

It will focus on the explorer sidebar, then you can navigate through the keyboard arrows.它将专注于资源管理器侧边栏,然后您可以浏览键盘箭头。

on a MacOS, you'd use CMD + SHIFT + E to focus on the sidebar.在 MacOS 上,您可以使用CMD + SHIFT + E来关注侧边栏。 Then you can use the arrow keys to navigate up and down the tree.然后您可以使用箭头键在树上上下导航。 To open an file or expand a folder, you can hit the spacebar key要打开文件或展开文件夹,您可以按spacebar

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

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