Open PhpStorm From Windows Explorer Context Menu For Directories
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!
Calendar
M | T | W | T | F | S | S |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 |
Recent Posts
- Windows Defender Firewall Inbound Rule for ICMPv6
- (Re)Setting Hyper-V Virtual Machine Client Zoom Level
- Uploading a Snapshot to a Fresh Home Assistant OS Instance
- Fix GNOME GUI Login After Upgrade to Debian 10 Buster (VirtualBox VM)
- Missing Credentials in Dropdown for Jenkins Build Configuration
Top Posts & Pages
- Fixing Low Stereo Out Sound Volume For the Yamaha MG12XU / MG16XU / MG20XU Audio Mixer
- Memory Leaks / Problems with Long-Running Symfony / Doctrine Console Applications
- Missing Credentials in Dropdown for Jenkins Build Configuration
- Windows Defender Firewall Inbound Rule for ICMPv6
Subscribe to Blog via E-mail
Categories
Archives
- May 2022
- April 2022
- May 2020
- July 2019
- June 2019
- October 2018
- May 2018
- January 2018
- December 2017
- October 2017
- September 2017
- August 2017
- March 2017
- February 2017
- January 2017
- December 2016
- June 2015
- November 2014
- December 2013
- July 2013
- May 2012
- April 2012
- March 2012
- January 2012
- June 2011
- May 2011
- June 2010
- April 2010
- January 2010
- October 2009
- September 2009
- August 2009
- July 2009
- June 2009