Skip to content

Instantly share code, notes, and snippets.

@hayk94
Created January 27, 2020 12:07
Show Gist options
  • Save hayk94/db703c2fd3489b953745e7acba42b942 to your computer and use it in GitHub Desktop.
Save hayk94/db703c2fd3489b953745e7acba42b942 to your computer and use it in GitHub Desktop.
Add "Open with Webstorm", "Open with IDEA" to windows context menu when using Toolbox
@echo off
:: change the path below to match your installed version
SET IDEApath=C:\Users\User\AppData\Local\JetBrains\Toolbox\apps\IDEA-C\ch-0\193.6015.39\bin\idea64.exe
echo Adding file entries
@reg add "HKEY_CLASSES_ROOT\*\shell\IDEA" /t REG_SZ /v "" /d "Open with IDEA" /f
@reg add "HKEY_CLASSES_ROOT\*\shell\IDEA" /t REG_EXPAND_SZ /v "Icon" /d "%IDEApath%,0" /f
@reg add "HKEY_CLASSES_ROOT\*\shell\IDEA\command" /t REG_SZ /v "" /d "%IDEApath% \"%%1\"" /f
echo Adding within a folder entries
@reg add "HKEY_CLASSES_ROOT\Directory\Background\shell\IDEA" /t REG_SZ /v "" /d "Open with IDEA" /f
@reg add "HKEY_CLASSES_ROOT\Directory\Background\shell\IDEA" /t REG_EXPAND_SZ /v "Icon" /d "%IDEApath%,0" /f
@reg add "HKEY_CLASSES_ROOT\Directory\Background\shell\IDEA\command" /t REG_SZ /v "" /d "%IDEApath% \"%%V\"" /f
echo Adding folder entries
@reg add "HKEY_CLASSES_ROOT\Directory\shell\IDEA" /t REG_SZ /v "" /d "Open with IDEA" /f
@reg add "HKEY_CLASSES_ROOT\Directory\shell\IDEA" /t REG_EXPAND_SZ /v "Icon" /d "%IDEApath%,0" /f
@reg add "HKEY_CLASSES_ROOT\Directory\shell\IDEA\command" /t REG_SZ /v "" /d "%IDEApath% \"%%1\"" /f
pause
@echo off
:: change the path below to match your installed version
SET WebStormPath=C:\Users\User\AppData\Local\JetBrains\Toolbox\apps\WebStorm\ch-0\193.6015.40\bin\webstorm64.exe
echo Adding file entries
@reg add "HKEY_CLASSES_ROOT\*\shell\WebStorm" /t REG_SZ /v "" /d "Open with 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 within a folder entries
@reg add "HKEY_CLASSES_ROOT\Directory\Background\shell\WebStorm" /t REG_SZ /v "" /d "Open with 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
echo Adding folder entries
@reg add "HKEY_CLASSES_ROOT\Directory\shell\WebStorm" /t REG_SZ /v "" /d "Open with 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
pause
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment