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


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 Files\JetBrains\WebStorm 2017.2.2\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

I have been using PHPStorm. for a few years now. and over the years I found it very hard to open a project. as I need to fire-up the PHPStorm App first then using the File menu I got to open the project.

For it, I was not that easy as I keep switching from 1 project to another and I like to have 1 project per window. so I did not use the multiple project feature

And at the same time PHPStorm or any other app developed by JetBrains had no option to open a project via Context Menu (menu which displays when we press right-click)

So I search the internet and found a useful script that can add PHPStorm to the context menu in windows

BAT File

@echo off
SET PHPStormVersion="201.6668.153"
SET PhpStormPath="E:\development-tools\apps\PhpStorm\ch-0\\%PHPStormVersion%\\bin\PhpStorm64.exe"

echo Adding file entries
@reg add "HKEY_CLASSES_ROOT\*\shell\PhpStorm" /t REG_SZ /v "" /d "Open in PhpStorm - %PHPStormVersion%"   /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 - %PHPStormVersion%"   /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 - %PHPStormVersion%"   /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

Great now I got an option to add it context menu right?

NO

This script needs to be RAN again once we update the PHPStorm as Jetbrains Stores exe files inside of version folder something like this PhpStorm\ch-0\201.6668.153\bin\phpstorm64.exe

And still, I haven’t figured a way to automatically find the new version.

But what I found is there is no centralized place where we can find the same script for all the Jetbrains apps

So I decided to create a Github Repository where I generated script for each and every app.

As of now I have added only for the Windows platform
Planing to add support for Linux too.

How to use?

  1. Make sure you download the script for the right platform (as of now we have only for windows)
  2. Locate the app folder inside platform/app . Example windows/PhpStorm
  3. Edit enable.cmd
  4. replace E:\development-tools\apps which is the install path where all your JetBrains app are stored.
  5. replace 201.6668.153 which is the version number for that app.
  6. Save it.
  7. Right-click enable.cmd and click Run As Administrator
  8. That’s it. now it’s configured. you can verify it by right-clicking anywhere
  1. Locate the app folder inside platform/app . Example windows/PhpStorm
  2. Right-click disable.cmd and click Run As Administrator

Questions or feedback? Please comment below.

See all my projects at Github.

Follow me on Twitter for updates


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

@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

1. «Клавиша с логотипом Windows + R». Откройте окно «Выполнить», введите RegEdit и нажмите «ОК». Как показано ниже:

2. Найдите HKEY_CLASSES_ROOT -> * -> shell -> New -> item

Добавьте подпункт в оболочку и назовите его phpstorm, то есть имя, отображаемое в контекстном меню. Наведите указатель мыши на оболочку и щелкните правой кнопкой мыши. Как показано ниже:

3. Добавьте команду подпункта в phpstorm и назовите подпункт как путь к программному обеспечению, поместите указатель мыши в место по умолчанию, щелкните правой кнопкой мыши и выберите «изменить», появится всплывающее окно «изменить символ». Строка »для изменения числовых данных. Как показано ниже:

Ссылка:Добавьте UE, notepad ++ и т. Д. В контекстное меню

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)\JetBrains\PhpStorm 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\*\shell\Aphpstorm]
[-HKEY_CLASSES_ROOT\Folder\shell\Aphpstorm]
[-HKEY_CLASSES_ROOT\Directory\Background\shell\Aphpstorm]

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

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

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

[HKEY_CLASSES_ROOT\Folder\shell\Aphpstorm\command]
@="C:\\Program Files (x86)\\JetBrains\\PhpStorm 2017\\bin\\phpstorm64.exe \"%1\""

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

[HKEY_CLASSES_ROOT\Directory\Background\shell\Aphpstorm\command]
@="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!

  • Как добавить vpn подключение на windows 10
  • Как добавить vlan windows 10
  • Как добавить thunderbird в автозагрузку windows 10
  • Как добавить utorrent в исключения брандмауэра windows 10
  • Как добавить using system windows forms