Open with WebStorm for Windows 10 with right click

Hi, do you have any idea how I can open a folder with a project in it with right-click then ''Open as a Webstorm project''? I can't do that...

 

6 comments
Comment actions Permalink

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)

2
Comment actions Permalink

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.

0
Comment actions Permalink
 
Elena Pogorelova .... So, I need to install it again?...
0
Comment actions Permalink

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

0
Comment actions Permalink

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

And this is the script : https://gist.github.com/firegore2/0ba76d74f070b07eda5a12f3f24ba054 

0

Please sign in to leave a comment.