Adding PhpStorm to context menu on right click on Windows

When you click on folder with right click it will show in context menu to open folder with PhpStorm like with Sublime text

You will have to change a path to the installation directory of PhpStorm depending of what version you have (SET PhpStormPath=...). Open your terminal as administrator and type:

@echo off SET PhpStormPath=C:\Program Files (x86)\JetBrains\PhpStorm 2016.2.1\bin\PhpStorm64.exe echo Adding file entries @reg add "HKEY_CLASSES_ROOT\*\shell\Open in PhpStorm" /t REG_SZ /v "" /d "Open in PhpStorm" /f @reg add "HKEY_CLASSES_ROOT\*\shell\Open in PhpStorm" /t REG_EXPAND_SZ /v "Icon" /d "%PhpStormPath%,0" /f @reg add "HKEY_CLASSES_ROOT\*\shell\Open in PhpStorm\command" /t REG_SZ /v "" /d "%PhpStormPath% \"%%1\"" /f echo Adding folder entries @reg add "HKEY_CLASSES_ROOT\Directory\shell\Open directory in PhpStorm" /t REG_SZ /v "" /d "Open directory in PhpStorm" /f @reg add "HKEY_CLASSES_ROOT\Directory\shell\Open directory in PhpStorm" /t REG_EXPAND_SZ /v "Icon" /d "%PhpStormPath%,0" /f @reg add "HKEY_CLASSES_ROOT\Directory\shell\Open directory in PhpStorm\command" /t REG_SZ /v "" /d "%PhpStormPath% \"%%1\"" /f pause