Open files in PHPStorm from you Symfony application

less than 1 minute read

If you want to open files in PHPStorm8 directly from the Symfony debug toolbar there is a neat trick you can use. This is very helpful when you quickly want to find a controller or when you got an exception.

// /app/config/config.yml
  ide: "phpstorm://open?file=%%f&line=%%l"

And that is pretty much it. You dont need to install PhpStormOpener, LinCastor or any other Apple script. This will work with PHPStorm8, Symfony2.6 and Mac OSX. Below is a picture to show where you should click to make PHPStorm open the controller used in this request.

PHPStorm8 Symfony debug toolbar

Leave a Comment