Open a file system view for the current file/folder selected in IntelliJ IDEA

March 17th, 2006

Contributed by: Etienne Studer

Note: The tip is valid only for MS Windows OS.

If you often need to locate a file or folder in your file system, you can configure Explorer to be opened right from IntelliJ IDEA.

1.   Click IDE Settings | External Tools, and then click the Add button.
2.   Specify the tool as shown on the screenshot below.
 

3.   You can also assign a keyboard shortcut to this tool.
   a.   Click IDE Settings | Keymap.
   b.   Select External Tools | Explorer, and click Add Keyboard Shortcut. For example, assign F10 key.

Note:   The default keymap schema cannot be modified. So, if you use the default keymap, just copy it to have your own.



Voila! Now if you press F10 in the Project or Hierarchy view, or just when you edit the file in the code editor, it will be located in Explorer.
And of course, you can attach any other external tool (let’s say MS Word) the same way.

Comments:

Posted by Denis N. Antonioli

Very impressive!

There is also a plugin, Native Neighbourhood, that provide support on more platforms, and the option to reveal the selected file in explorer or in a shell.

March 17th, 2006 at 2:03 pm
Posted by Uncheck Sync

I chose to uncheck “Synchronize files after execution” because it causes a long lag after opening Explorer. (Project has over 1000 files accessed over the network)

March 17th, 2006 at 2:11 pm
Posted by Oliver Fink

This also works nicely in MacOS X, where you could call it “Open in Finder”. Just use “/usr/bin/open” as then program instead of “explorer” and only use “$FileDir$” as the parameter.

March 20th, 2006 at 5:04 am
Posted by Olivier DESCOUT

This opens a simple folder view without the folder tree view panel on the left.
If you want the Explorer-like folder tree as well, type ” /e,/select,$FilePath$ ” instead of ” /select,$FilePath$ ” as program parameter.

April 6th, 2006 at 9:20 am

Post a Reply

This is a captcha-picture. It is used to prevent mass-access by robots. (see: www.captcha.net)

You must read and type the 5 chars within 0..9 and A..F, and submit the form.

  

Oh no, I cannot read this. Please, generate a