Add Open Folder in PHPStormPycharm to Windows Context Menu(将Open Folder in Pycharm)添加到右键
Add Open Folder in PHPStorm/Pycharm to Windows Context Menu(将Open Folder in Pycharm)添加到右键
注意要用管理员的身份启动
php
@echo off
SET PhpStormPath=C:\Program Files\JetBrains\PhpStorm 2020.3.3\bin\phpstorm64.exe
echo Adding file entries
@reg add "HKEY_CLASSES_ROOT\*\shell\PhpStorm" /t REG_SZ /v "" /d "Open in 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
pycharm
@echo off
SET PycharmPath=C:\Users\AAA\AppData\Local\JetBrains\Toolbox\apps\PyCharm-P\ch-0\223.7571.203\bin\pycharm64.exe
echo Adding file entries
@reg add "HKEY_CLASSES_ROOT\*\shell\Pycharm" /t REG_SZ /v "" /d "Open in Pycharm" /f
@reg add "HKEY_CLASSES_ROOT\*\shell\Pycharm" /t REG_EXPAND_SZ /v "Icon" /d "%PycharmPath%,0" /f
@reg add "HKEY_CLASSES_ROOT\*\shell\Pycharm\command" /t REG_SZ /v "" /d "%PycharmPath% \"%%1\"" /f
echo Adding within a folder entries
@reg add "HKEY_CLASSES_ROOT\Directory\Background\shell\Pycharm" /t REG_SZ /v "" /d "Open with Pycharm" /f
@reg add "HKEY_CLASSES_ROOT\Directory\Background\shell\Pycharm" /t REG_EXPAND_SZ /v "Icon" /d "%PycharmPath%,0" /f
@reg add "HKEY_CLASSES_ROOT\Directory\Background\shell\Pycharm\command" /t REG_SZ /v "" /d "%PycharmPath% \"%%V\"" /f
echo Adding folder entries
@reg add "HKEY_CLASSES_ROOT\Directory\shell\Pycharm" /t REG_SZ /v "" /d "Open with Pycharm" /f
@reg add "HKEY_CLASSES_ROOT\Directory\shell\Pycharm" /t REG_EXPAND_SZ /v "Icon" /d "%PycharmPath%,0" /f
@reg add "HKEY_CLASSES_ROOT\Directory\shell\Pycharm\command" /t REG_SZ /v "" /d "%PycharmPath% \"%%1\"" /f