Open containing directory in Windows Explorer from IntelliJ

intellij-idea, java, windows, windows-explorer

Solution

Just padding out Peter Lawrey's answer, for Intellij 12.n on Windows 7 the steps for adding explorer as an external program would be:

- File > Settings > External Tools

- Click on the Plus (+) in the

- Name: Open Containing Folder

- Group: [select group]

- Description: Open Containing Folder

- Unselect "Open Console"

- Program: explorer [or] C:\Windows\System32\explorer.exe

- Parameters: $FileDir$

- Working Directory: [leave blank]

- Click OK

You can then add the External Tool as a keyed short cut through File > Settings > Keymap

Right clicking on a source file External Tools->Open Containing Folder is another way to use this tool.

Problem

Is there a way (keyboard shortcut?) to open the folder of the currently opened file in Windows Explorer? What I mean is this: When a java source file is open in IntelliJ, I'd like to open Windows Explorer on the folder containing that file. Is there a short way of doing that?

Original source