Adding Open Folder in PHPStorm to Windows Context Menu?

Anyone know how? I tried passing the folder as a prameter and didn't work for me.


Comment actions Permalink

Hi Christian,

Works fine for me on Windows 7 x64 SP1.

I've used FileTypeMan program to add such context menu entry --
1) Find "Folder" entry
2) Create new action:
- Action Name: Open in PhpStorm
- Menu Caption: Open in PhpStorm
- Command Line: "C:\Program Files (x86)\JetBrains\PhpStorm\bin\PhpStorm.exe" "%1"

It works OK -- it opens that folder in PhpStorm and silently creates new project there (you will see new .idea folder created).

The "problem" is -- if you remove project from IDE and delete project settings (.idea folder) and then decide to reopen such folder again .. PhpStorm will be complaining that it cannot open that .idea folder... Only "File | Invalidate Caches" will help here. But this is very rare scenario (you open folder in PhpStorm, then decide that it was wrong folder .. and then open it again).

Comment actions Permalink

Just in case someone wants to do this without installing more software..

Add this to your registry (change the path to match your phpstorm installation)


Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Directory\shell\PHP Storm]
@="Open in &PHP Storm"
"icon"="\"C:\\Program Files\\JetBrains\\PhpStorm 2018.2.2\\bin\\phpstorm64.exe\""

[HKEY_CLASSES_ROOT\Directory\shell\PHP Storm\command]
@="\"C:\\Program Files\\JetBrains\\PhpStorm 2018.2.2\\bin\\phpstorm64.exe\" \"%1\""

Comment actions Permalink

I just did a fresh install on a new laptop and saw that this was now a feature. Nice!

Is there any way to enable this through PhpStorm itself on my old installation?

Comment actions Permalink

@James Antrim

>Is there any way to enable this through PhpStorm itself on my old installation?

No. Such option is available in Installer only (as it tries to install new version into new folder).

Use registry file approach above or that FileTypeMan program to create new/edit existing entry for your existing installation.

Comment actions Permalink

For those who are still looking...

here is a command to do this


Please sign in to leave a comment.