[ACCEPTED]-Open containing directory in Windows Explorer from IntelliJ-windows-explorer

Accepted answer
Score: 19

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

  1. File > Settings > External Tools
  2. Click on the Plus (+) in the
  3. Name: Open Containing Folder
  4. Group: [select group]
  5. Description: Open Containing Folder
  6. Unselect "Open Console"
  7. Program: explorer [or] C:\Windows\System32\explorer.exe
  8. Parameters: $FileDir$
  9. Working Directory: [leave blank]
  10. Click OK

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

Right clicking on a source file 2 External Tools->Open Containing Folder is 1 another way to use this tool. enter image description here

Score: 7

As of version 2016.2 you can press Alt+F1 while 4 in the editor and navigate to different 3 view. Choose "Show in file manager". You 2 can even navigate to a corresponding pom.xml 1 from Maven view. Powerful, indeed.

Score: 2

You can try one of these plugins:

  • "OpenContainingFolder"
  • "Open containing folder in a File Explorer"

0

Score: 2

Just wanted to add to Simon B's answer that 3 based on this article for selecting the file in 2 addition to opening its parent folder in 1 step 8 change "$FileDir$" to "/select, $FilePath$"

Score: 1

You can add explorer as an external program 3 and add a hot key for that. i.e. you will 2 be able to select a directory or file and 1 the same opens in windows explorer.

Score: 1

This help page provides an easier way of doing this in 1 later versions of IntelliJ as follows:-

  1. Hold down CTRL and then left-click the mouse on the tab containing the source code (i.e. the actual tab part at the top).
  2. This will display a folder hierarchy with the filename at the top: To open the folder the file is in, click on the the filename.
Score: 1

Use Open In contextual menu option

enter image description here

0

Score: 0

Windows 10: use "C:\Windows\explorer.exe" instead. (#7 1 Program:)

Score: 0

You can assign a keyboard shortcut via setting/keymap. See 3 the image below. Select a folder/sub-folder 2 from the project directory tree and key 1 in the shortcut.

enter image description here

More Related questions