Syntax validation via php -l

Hi.
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

0
2 comments

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"

0

Super, thanks Andriy!

0

Please sign in to leave a comment.