Skip to content

Instantly share code, notes, and snippets.

@DevYunus
Created May 6, 2018 03:07
Show Gist options
  • Select an option

  • Save DevYunus/4f0f5fb3092138c320ff254bf56393fc to your computer and use it in GitHub Desktop.

Select an option

Save DevYunus/4f0f5fb3092138c320ff254bf56393fc to your computer and use it in GitHub Desktop.
Open with PHP Storm - add PHPStrom in context menu windows 7,8,10
@echo off
:: please change file path according to your installed path
SET PHPStormPath=C:\Program Files\JetBrains\PhpStorm 2018.1.2\bin\phpstorm64.exe
echo Adding file entries
@reg add "HKEY_CLASSES_ROOT\*\shell\PHPStorm" /t REG_SZ /v "" /d "Open with PHPStorm" /f
@reg add "HKEY_CLASSES_ROOT\*\shell\PHPStorm" /t REG_EXPAND_SZ /v "Icon" /d "%PHPStormPath%,0" /f
@reg add "HKEY_CLASSES_ROOT\*\shell\PHPStorm\command" /t REG_SZ /v "" /d "%PHPStormPath% \"%%1\"" /f
echo Adding within a folder entries
@reg add "HKEY_CLASSES_ROOT\Directory\Background\shell\PHPStorm" /t REG_SZ /v "" /d "Open with PHPStorm" /f
@reg add "HKEY_CLASSES_ROOT\Directory\Background\shell\PHPStorm" /t REG_EXPAND_SZ /v "Icon" /d "%PHPStormPath%,0" /f
@reg add "HKEY_CLASSES_ROOT\Directory\Background\shell\PHPStorm\command" /t REG_SZ /v "" /d "%PHPStormPath% \"%%V\"" /f
echo Adding folder entries
@reg add "HKEY_CLASSES_ROOT\Directory\shell\PHPStorm" /t REG_SZ /v "" /d "Open with PHPStorm" /f
@reg add "HKEY_CLASSES_ROOT\Directory\shell\PHPStorm" /t REG_EXPAND_SZ /v "Icon" /d "%PHPStormPath%,0" /f
@reg add "HKEY_CLASSES_ROOT\Directory\shell\PHPStorm\command" /t REG_SZ /v "" /d "%PHPStormPath% \"%%1\"" /f
pause
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment