Skip to content

Instantly share code, notes, and snippets.

@FawzyMokhtar
Created August 13, 2018 09:25
Show Gist options
  • Save FawzyMokhtar/d6d059304fbb7a98c8b1aa1fb2bae4a5 to your computer and use it in GitHub Desktop.
Save FawzyMokhtar/d6d059304fbb7a98c8b1aa1fb2bae4a5 to your computer and use it in GitHub Desktop.
Add context menu to Windows to open File/Folder in WebStorm
@echo off
SET WebStormPath=<Webstorm.exe path>
echo Adding file entries
@reg add "HKEY_CLASSES_ROOT\*\shell\WebStorm" /t REG_SZ /v "" /d "Open w&ith WebStorm" /f
@reg add "HKEY_CLASSES_ROOT\*\shell\WebStorm" /t REG_EXPAND_SZ /v "Icon" /d "%WebStormPath%,0" /f
@reg add "HKEY_CLASSES_ROOT\*\shell\WebStorm\command" /t REG_SZ /v "" /d "%WebStormPath% \"%%1\"" /f
echo Adding folder entries
@reg add "HKEY_CLASSES_ROOT\Directory\shell\WebStorm" /t REG_SZ /v "" /d "Open w&ith WebStorm" /f
@reg add "HKEY_CLASSES_ROOT\Directory\shell\WebStorm" /t REG_EXPAND_SZ /v "Icon" /d "%WebStormPath%,0" /f
@reg add "HKEY_CLASSES_ROOT\Directory\shell\WebStorm\command" /t REG_SZ /v "" /d "%WebStormPath% \"%%1\"" /f
echo Adding folder backgrounds
@reg add "HKEY_CLASSES_ROOT\Directory\Background\shell\WebStorm" /t REG_SZ /v "" /d "Open w&ith WebStorm" /f
@reg add "HKEY_CLASSES_ROOT\Directory\Background\shell\WebStorm" /t REG_EXPAND_SZ /v "Icon" /d "%WebStormPath%,0" /f
@reg add "HKEY_CLASSES_ROOT\Directory\Background\shell\WebStorm\command" /t REG_SZ /v "" /d "%WebStormPath% \"%%V\"" /f
pause
@FawzyMokhtar
Copy link
Author

1.Consider replace the <Webstorm.exe path> with your webstorm.exe path
for e.g

C:\Program Files\JetBrains\WebStorm 2017.2.2\bin\webstorm64.exe

  1. Save changes to the file
  2. Right click on the file then Run as Administrator
  3. Enjoy it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment