26

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.

1

3 Answers 3

37

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

Pressing Enter will edit the filename.

Sign up to request clarification or add additional context in comments.

2 Comments

this should be the selected answer
Thank you. This has solved a 1+ year long mystery/annoyance for me.
9

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.

2 Comments

Ah, list.select is the command I'm looking for. I'm on a Mac, and as in Finder, Enter edits the file name. I've bound CMD+Enter, which is now working as expected. Thanks!
On mac you have to do what's in andrewb's comment to get the desired effect. Thanks all!
1

After workbench.files.action.focusFilesExplorer you can press Up or Down to navigate through file list while File explorer is fosuced. Then hit Enter to open the selected file.

Also I set Ctrl + E for workbench.files.action.focusFilesExplorer.

In my case, sequential navigating through list of files is a repeating sequence of these shortcuts:

  • Ctrl + E
  • Down
  • Enter
  • ...
  • Ctrl + E
  • Down
  • Enter
  • ...

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.