Installer app has such option (PhpStorm one has for sure). I do not know what can be done if it was installed using JetBrains Toolbox (as I simply do not use it).
P.S. You can also do this manually (e.g. using this free app -- NirSoft FileTypeMan) by adding new command for Folder (or Directory, not sure) entry.
I made a script in php to generate the required registries in windows, but in macos and linux could make more easy.
This is an example of registry for PHPStorm (filename: PhpStorm.reg):
Windows Registry Editor Version 5.00 ; PhpStorm ; when you right click a folder while holding shift [HKEY_CLASSES_ROOT\Directory\Background\shell\PhpStorm] @="Open directory with PhpStorm" "Icon"="E:\\Program Files (x86)\\JetBrains\\apps\\PhpStorm\\ch-0\\211.7036.8\\bin\\phpstorm64.exe,0" [HKEY_CLASSES_ROOT\Directory\Background\shell\PhpStorm\command] @="E:\\Program Files (x86)\\JetBrains\\apps\\PhpStorm\\ch-0\\211.7036.8\\bin\\phpstorm64.exe \"%V\""
; when you right click a folder [HKEY_CLASSES_ROOT\Directory\shell\PhpStorm] @="Open directory with PhpStorm" "Icon"="E:\\Program Files (x86)\\JetBrains\\apps\\PhpStorm\\ch-0\\211.7036.8\\bin\\phpstorm64.exe,0" [HKEY_CLASSES_ROOT\Directory\shell\PhpStorm\command] @="E:\\Program Files (x86)\\JetBrains\\apps\\PhpStorm\\ch-0\\211.7036.8\\bin\\phpstorm64.exe \"%1\""
; when you right click a file [HKEY_CLASSES_ROOT\*\shell\PhpStorm] @="Open filewith PhpStorm" "Icon"="E:\\Program Files (x86)\\JetBrains\\apps\\PhpStorm\\ch-0\\211.7036.8\\bin\\phpstorm64.exe,0" [HKEY_CLASSES_ROOT\*\shell\PhpStorm\command] @="E:\\Program Files (x86)\\JetBrains\\apps\\PhpStorm\\ch-0\\211.7036.8\\bin\\phpstorm64.exe \"%1\""
; when you right click a folder [HKEY_CLASSES_ROOT\Directory\shell\PhpStorm] @="Open directory with PhpStorm" "Icon"="E:\\Program Files (x86)\\JetBrains\\apps\\PhpStorm\\ch-0\\211.7036.8\\bin\\phpstorm64.exe,0" [HKEY_CLASSES_ROOT\Directory\shell\PhpStorm\command] @="E:\\Program Files (x86)\\JetBrains\\apps\\PhpStorm\\ch-0\\211.7036.8\\bin\\phpstorm64.exe \"%1\""
while installing, you can choose to open folder as project:
note that this option is not available when installing IDE with toolbox (https://youtrack.jetbrains.com/issue/TBX-3573)
Hi there,
Installer app has such option (PhpStorm one has for sure). I do not know what can be done if it was installed using JetBrains Toolbox (as I simply do not use it).
P.S. You can also do this manually (e.g. using this free app -- NirSoft FileTypeMan) by adding new command for Folder (or Directory, not sure) entry.
Please see Andriy Bazanov comment above - this can be done with NirSoft FileTypeMan or other tools
If you don't like doing this manually, then yes - you have to re-run the installer and enable the corresponding option
A complete script is available here. https://gist.github.com/M1chaelTran/f22ac7c48466e8970f932ab743043e79
I made a script in php to generate the required registries in windows, but in macos and linux could make more easy.
This is an example of registry for PHPStorm (filename: PhpStorm.reg):
And this is the script : https://gist.github.com/firegore2/0ba76d74f070b07eda5a12f3f24ba054