Martin Andersen
Martin Andersen

Reputation: 2730

VS Code Explorer side bar navigation

When I press Cmd + Shift + E I set focus on the explore file tree, and can now navigate my files with the arrow keys.

Enter should active the file but instead it activates the rename command that is normal associate with F2.

It works on windows but not on my macbook. I know how to create a custom key binding. but I can not find the command for activating a file in keybindings.json.

I am using Parallels Desktop 12 for Mac and know that it can cause keyboard binding issues. But I dont think it's the case here.

So do someone have a solution for this or know the command to activate in the keybindings.json file?

Upvotes: 1

Views: 1253

Answers (1)

Micke
Micke

Reputation: 35

Bind the list.select event to enter in your keybindings.json

{
    "key": "enter",
    "command": "list.select",
    "when": "listFocus"
}

Upvotes: 1

Related Questions