This code allows to use phpstorm://
protocol to open a file in a PhpStorm.
One of the following links must be specified as an editor in your app:
phpstorm://open?url=file://%f&line=%l
phpstorm://open?file=%f&line=%l
If something doesn't work, then feel free to submit an issue on GitHub.
- clone this repository in the folder
C:\Program Files\PhpStorm Protocol (Win)
git clone https://github.com/Makedit/PhpStormProtocolWin.git "C:\Program Files\PhpStorm Protocol (Win)"
- double click on
C:\Program Files\PhpStorm Protocol (Win)\install.reg
file and agree to whatever Registry Editor asks you - by default PhpStorm has to be installed in
C:\Program Files\JetBrains\PhpStorm
on Windows x64. If you use 32 bits version or another folder, update settings atC:\Program Files\PhpStorm Protocol (Win)\run_phpstorm.js
- if you use Xdebug, set the following line on php.ini
xdebug.file_link_format = "phpstorm://open?file=%f&line=%l"