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.

Thanks

2

Hi Christian,

Works fine for me on Windows 7 x64 SP1.

I've used FileTypeMan program to add such context menu entry -- http://www.nirsoft.net/utils/file_types_manager.html
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).

1

Much Thanks!

0

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\""

5

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?

0

@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.

0

Ok, Thank you.

0

For those who are still looking...

here is a command to do this 

https://gist.github.com/ibrahimhajjaj/e2265bd37ba072d6abc924635418e434

0

This will not work if the installation was done with JetBrain Tool Box... any solution?

0

请先登录再写评论。