selfish
8/3/2015 - 12:55 PM

Add context menu to Windows to open file/folder in WebStorm

Add context menu to Windows to open file/folder in WebStorm


@ECHO OFF

::Change WebStormPath to whatever suits your system then right-click and 'run as administrator'.
SET WebStormPath=C:\Program Files (x86)\JetBrains\WebStorm 8.0.2\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 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