简体   繁体   中英

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.

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. 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. It's bound to the list.select command by default. This also works for expanding / collapsing folders.

By default on a mac you can use cmd + down to open the file.

Pressing Enter will edit the filename.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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