-
-
Save fenok/191fcbb0e10d302dfe259ce62770c9f8 to your computer and use it in GitHub Desktop.
Add context menu to Windows 7 to open file/folder in PhpStorm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
SET WebStormPath=C:\Program Files\JetBrains\WebStorm 2017.3.4\bin\webstorm64.exe | |
echo Adding file entries | |
@reg add "HKEY_CLASSES_ROOT\*\shell\Open in WebStorm" /t REG_SZ /v "" /d "Open in WebStorm" /f | |
@reg add "HKEY_CLASSES_ROOT\*\shell\Open in WebStorm" /t REG_EXPAND_SZ /v "Icon" /d "%WebStormPath%,0" /f | |
@reg add "HKEY_CLASSES_ROOT\*\shell\Open in WebStorm\command" /t REG_SZ /v "" /d "%WebStormPath% \"%%1\"" /f | |
echo Adding folder entries | |
@reg add "HKEY_CLASSES_ROOT\Directory\shell\Open directory in WebStorm" /t REG_SZ /v "" /d "Open directory in WebStorm" /f | |
@reg add "HKEY_CLASSES_ROOT\Directory\shell\Open directory in WebStorm" /t REG_EXPAND_SZ /v "Icon" /d "%WebStormPath%,0" /f | |
@reg add "HKEY_CLASSES_ROOT\Directory\shell\Open directory in WebStorm\command" /t REG_SZ /v "" /d "%WebStormPath% \"%%1\"" /f | |
pause |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment