Running External Tools in PhpStorm
While PhpStorm comes with a lot of integrated utilities and tools, it is virtually impossible to include every tool out there in the IDE. A lesser-known feature in PhpStorm is support for running External Tools. With this feature we can create a shortcut to a tool, which can then be invoked from various menus or by using a keyboard shortcut.
Here’s an example of an external tool. Many image editors create PNG images that are not optimized. What if we wanted to run the OptiPNG tool to optimize our images and make it easy to run?
If we select a PNG file in our project, we can simply use the (custom assigned) Alt+I shortcut to optimize it. This will run OptiPNG in a console and displays its output:
Want to see how this has been done? Find out through the PhpStorm tutorials page!
Develop with pleasure!
– JetBrains PhpStorm Team