Как добавить webstorm в контекстное меню windows

Add `Open with WebStorm` to Windows right click context menu - WebStorm.cmd


This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters

Show hidden characters

@echo off
:: change the path below to match your installed version
SET WebStormPath=C:Program FilesJetBrainsWebStorm 2017.2.2binwebstorm64.exe
echo Adding file entries
@reg add «HKEY_CLASSES_ROOT*shellWebStorm« /t REG_SZ /v «« /d «Open with WebStorm« /f
@reg add «HKEY_CLASSES_ROOT*shellWebStorm« /t REG_EXPAND_SZ /v «Icon« /d «%WebStormPath%,0« /f
@reg add «HKEY_CLASSES_ROOT*shellWebStormcommand« /t REG_SZ /v «« /d «%WebStormPath% «%%1«« /f
echo Adding within a folder entries
@reg add «HKEY_CLASSES_ROOTDirectoryBackgroundshellWebStorm« /t REG_SZ /v «« /d «Open with WebStorm« /f
@reg add «HKEY_CLASSES_ROOTDirectoryBackgroundshellWebStorm« /t REG_EXPAND_SZ /v «Icon« /d «%WebStormPath%,0« /f
@reg add «HKEY_CLASSES_ROOTDirectoryBackgroundshellWebStormcommand« /t REG_SZ /v «« /d «%WebStormPath% «%%V«« /f
echo Adding folder entries
@reg add «HKEY_CLASSES_ROOTDirectoryshellWebStorm« /t REG_SZ /v «« /d «Open with WebStorm« /f
@reg add «HKEY_CLASSES_ROOTDirectoryshellWebStorm« /t REG_EXPAND_SZ /v «Icon« /d «%WebStormPath%,0« /f
@reg add «HKEY_CLASSES_ROOTDirectoryshellWebStormcommand« /t REG_SZ /v «« /d «%WebStormPath% «%%1«« /f
pause

При установке WebStorm есть возможность добавить команду контекстного меню, чтобы открыть файл или папку с помощью WebStorm. Если вы используете зеленую версию, вам нужно будет добавить такую ​​команду меню самостоятельно. Для этого вы можете создать текстовый файл в Блокноте, сохранить его как файл cmd, выбрать ANSI для кодировки файла, а содержимое файла будет следующим.

@ ECHO OFF
УСТАНОВИТЕ WebStormPath=F:WSWebStorm-2021.1.3.winbinwebstorm64.exe

эхо Добавить запись файла…
@reg добавить «HKEY_CLASSES_ROOT*shellWebStorm» /t REG_SZ /v «» /d «Открыть с помощью WebStorm» /f
@reg добавить «HKEY_CLASSES_ROOT*shellWebStorm» /t REG_EXPAND_SZ /v «Значок» /d «% WebStormPath%,0» /f
@reg добавить «HKEY_CLASSES_ROOT*shellWebStormcommand» /t REG_SZ /v «» /d «%WebStormPath% »%%1»» /f

echo Добавляет запись в папку…
@reg добавить «HKEY_CLASSES_ROOTDirectoryBackgroundshellWebStorm» /t REG_SZ /v «» /dОткрыть с помощью WebStorm /f
@reg добавить «HKEY_CLASSES_ROOTDirectoryBackgroundshellWebStorm» /t REG_EXPAND_SZ /v «Значок» /d «%WebStormPath%,0» /f
@reg добавить «HKEY_CLASSES_ROOTDirectoryBackgroundshellWebStormcommand» /t REG_SZ /v «» /d «%WebStormPath% »%%V»» /f

эхо Добавить запись в папку…
@reg добавить «HKEY_CLASSES_ROOTDirectoryshellWebStorm» /t REG_SZ /v «» /d «Открыть с помощью WebStorm» /f
@reg добавить «HKEY_CLASSES_ROOTDirectoryshellWebStorm» /t REG_EXPAND_SZ /v «Значок» /d «%WebStormPath%,0» /f
@reg добавить «HKEY_CLASSES_ROOTDirectoryshellWebStormcommand» /t REG_SZ /v «» /d «%WebStormPath% »%%1»» /f

Пауза

Запустите указанный выше cmd-файл, чтобы добавить нужное контекстное меню.

7Sep/170

Hello!

If you are a bit lazy like me and just want to simply open PhpStorm from the directory that you’ve currently navigated to in Windows Explorer, you can use this .reg file to add the registry entries for the entry in the context menu.

Warning: This involves messing around a bit with the registry. Please make sure you understand what you are doing!

This .reg file assumes that the path to your PhpStorm installation is C:Program Files (x86)JetBrainsPhpStorm 2017. If it is not, just search and replace every occurrence of the path in the .reg file with the one that applies for you. Remember to escape backslashes with a backslash!

Windows Registry Editor Version 5.00

[-HKEY_CLASSES_ROOT*shellAphpstorm]
[-HKEY_CLASSES_ROOTFoldershellAphpstorm]
[-HKEY_CLASSES_ROOTDirectoryBackgroundshellAphpstorm]

[HKEY_CLASSES_ROOT*shellAphpstorm]
@="Open Directory in PhpStorm"
"Icon"="C:\Program Files (x86)\JetBrains\PhpStorm 2017\bin\phpstorm64.exe"

[HKEY_CLASSES_ROOT*shellAphpstormcommand]
@="C:\Program Files (x86)\JetBrains\PhpStorm 2017\bin\phpstorm64.exe "%1""

[HKEY_CLASSES_ROOTFoldershellAphpstorm]
@="Open Directory in PhpStorm"
"Icon"="C:\Program Files (x86)\JetBrains\PhpStorm 2017\bin\phpstorm64.exe"

[HKEY_CLASSES_ROOTFoldershellAphpstormcommand]
@="C:\Program Files (x86)\JetBrains\PhpStorm 2017\bin\phpstorm64.exe "%1""

[HKEY_CLASSES_ROOTDirectoryBackgroundshellAphpstorm]
@="Open Directory in PhpStorm"
"Icon"="C:\Program Files (x86)\JetBrains\PhpStorm 2017\bin\phpstorm64.exe"
;"NoWorkingDirectory"=""

[HKEY_CLASSES_ROOTDirectoryBackgroundshellAphpstormcommand]
@="C:\Program Files (x86)\JetBrains\PhpStorm 2017\bin\phpstorm64.exe "%V""

Instructions: Just copy the text into a text file, save it as a file with the .reg extension (e.g. «phpstorm.reg») and execute it via double-click. When asked if you want to continue modifying the registry, confirm with «Yes».

Note: You might wonder why the registry paths contain a segment called «Aphpstorm» instead of «phpstorm» (or anything else). This is so that this entry takes alphabetic precedence over other entries and it is sorted further up. It will not influence the text displayed in the context menu.

Unfortunately I do not know the exact source for this neat little trick because I got this from a colleague at work.

If you wish to revert these changes at some point, just do what the first three instructions in the .reg file do: delete the 3 appropriate keys in the registry.

I hope this is useful to you! It sure is for me.

Thanks for reading!

I’ve just started to use PhpStorm, which is a wonderful IDE. However, I wanted to make it even easier for myself to open files and folders. A context menu in Windows fits the bill quite nicely – just right-click on a folder and open in PhpStorm.

This batch file will do just that!

loading gist file...

Just set the path to whatever suits your system and then right-click and ‘run as administrator’ on the batch file.

Share

Related Posts

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Есть ли способ запустить Webstorm, чтобы он открывал выбранную папку в проводнике Windows?

Вместо того:

  • запуск Webstorm (возможно, в другом проекте из его последнего сеанса);
  • закрытие текущего проекта;
  • поиск нужного проекта в панели мастера проекта;
  • наконец, открыв его.

Что-то типа:

  • Настройте (одноразово для каждого проекта) ярлык для Webstorm с аргументом, указывающим на данный проект.
  • Затем вы можете просто дважды щелкнуть этот ярлык, чтобы запустить его из этого проекта!

Есть ли что-нибудь подобное? Или способ зарегистрировать любую папку с подпапкой .idea, чтобы иметь возможность щелкнуть правой кнопкой мыши «открыть с помощью … -> Webstorm»?

1 ответ

Лучший ответ

Да ладно, разобрался.

Ярлык значка работает, просто добавляя весь путь к вашему проекту в качестве аргумента для цели ярлыка, например:
(очевидно, вы можете скопировать и вставить его вместо того, чтобы печатать все вручную)

enter image description here

Если у вас настроено несколько ярлыков и вы открываете каждый из них, насколько я могу судить … он открывает их в отдельных окнах Webstorm, оставляя открытым предыдущее. Таким образом, вы можете более эффективно переключаться между проектами.


2

bigp
25 Сен 2015 в 16:06

Понравилась статья? Поделить с друзьями:
  • Как добавить firefox в автозагрузку в windows 10
  • Как добавить бат файл в автозагрузку windows 10
  • Как добавить explorer exe в автозагрузку windows 10
  • Как добавить vpn в windows 10 бесплатное впн подключение
  • Как добавить басс в windows 10