That’s exactly what File Watchers allow us to do!
Note for some IDEs we will have to download and install the File Watchers plugin to use this functionality (available for free). The plugin comes bundled with WebStorm and PhpStorm.
When PhpStorm detects that you are working in a type of file it can “watch,” it will prompt us to set up a File Watcher. Here’s an example of that when working in a .less file:
Clicking Add watcher will configure PhpStorm to transform the LESS code we are working on into CSS. And we can do the same with tools like YUI Compressor, Closure Compiler, TypeScript and CoffeeScript compiler and many, many more.
Develop with pleasure!
– JetBrains PhpStorm Team