Reputation: 123
There are way to configure Visual Studio Code for debug, but need only to run PHP code.. and unnecessary for configure xDebug.
Is there way to run PHP from box ?
Upvotes: 0
Views: 1696
Reputation: 146588
I may be wrong but I believe that VSCode lacks the ability to run arbitrary commands out of the box. However, there's a third-party extension called Runner that implements this feature. It comes pre-configured for several script types, including PHP, so you just need to open the script and hit Ctrl+R.
If you need something more specific, such as configuring a list of named tasks, there're other extensions that do so.
Upvotes: 1