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

alexandra.rusina

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 below can no longer be edited.

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

  1. Denis N. Antonioli says:

    March 17, 2006

    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.

  2. Uncheck Sync says:

    March 17, 2006

    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)

  3. Oliver Fink says:

    March 20, 2006

    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.

  4. Olivier DESCOUT says:

    April 6, 2006

    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.

  5. Babak says:

    September 29, 2017

    Very useful…
    Thanks

Subscribe

Subscribe for updates