Reveal current file in Explorer in Visual Studio Code

In the command palette (F1), there is a Files: Reveal Active File in Side Bar command. You can assign a shortcut to it via the keyboard shortcuts editor:

Alternatively, you could try the Reveal extension which adds this button to editors:

It might make sense to disable auto-reveal when using this shortcut as a "manual reveal":

"explorer.autoReveal": false

To show the active file in the Windows-Explorer or sidebar:

  • right-click on the file tab and choose 'reveal in explorer'/'reveal in side bar'

enter image description here

The keyboard shortcut for reveal in windows explorer is is ctrl K R

To show the file in the sidebar you can assign a custom code in the keybindings window:

enter image description here