Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to reveal current file in Explorer?

When I have a file opened, I'd like to have a shortcut to navigate to this file inside the EXPLORER, so that I can see where it is located.

How can I do this?

like image 768
Jim Aho Avatar asked Jun 30 '17 10:06

Jim Aho


People also ask

How do I show the current file in Solution Explorer?

In Visual Studio's menu go to Tools > Options > Projects and Solutions. Then check "Track Active Item in Solution Explorer".

How do I find files in Visual Studio Solution Explorer?

With ReSharper installed Shift + Alt + L will find the current file in Solution Explorer in Visual Studio 2008+. when you track you don't need this shortcut.


Video Answer


2 Answers

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 
like image 105
Gama11 Avatar answered Sep 23 '22 00:09

Gama11


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

like image 38
jps Avatar answered Sep 23 '22 00:09

jps