Hi,
I'm not able to set a keyboard shortcut to reveal a file in a sidebar. It is possible only for Reveal file in a Finder.
How can I achieve that? I don't want to have "auto reveal" option set to true, but writing "cmd+shift+p reve Down Down Enter" is a bit lengthy.
Maybe making this action public could help? "_workbench.action.files.revealInExplorer" :) Not sure ;)
Thanks for your suggestions.
Well, from code base I incidentally found out that the action could be invoked also from editor tab context menu :+1: But having a shortcut could be also great ;) Thanks.
You can assign your own keyboard shortcut to the command workbench.files.action.showActiveFileInExplorer to achieve this
Example:
``
{
"key": "ctrl+q",
"command": "workbench.files.action.showActiveFileInExplorer",
"when": "editorTextFocus"
}
```
Aaaaha. Didn't find that command. Thanks for your response.
No problem, Happy Coding!
Most helpful comment
You can assign your own keyboard shortcut to the command
workbench.files.action.showActiveFileInExplorerto achieve thisExample:
``
{
"key": "ctrl+q",
"command": "workbench.files.action.showActiveFileInExplorer",
"when": "editorTextFocus"
}
```