Syntax validation via php -l

Is it somehow possible to validate the current PHP file by calling "php -l <filename>" from inside the IDE by just pressing a shortcut and then redirecting the output to a window?
Maybe by using "Tools/ Run command", but is there a placeholder for the current filename?

Thanks, Tom

Comment actions Permalink

Hi Thomas,

You need External Tools functionality (Settings | External Tools):

Once such entry is created, you can later access it from multiple locations via context menus .. or assign custom shortcut in "Settings | Keymap | External Tools"

Comment actions Permalink

Super, thanks Andriy!


Please sign in to leave a comment.