When opening any PHP file in the Windows version of Visual Studio Code (version 0.10.1), I get the message:
Cannot validate the php file. The php program was not found. Use the 'php.validate.executablePath' setting to configure the location of 'php'
I don't have PHP installed locally -- is there some way to turn off the automatic validation for PHP, either for the project or globally?
Starting with version 0.10.5, there is a setting under the PHP Configuration Options
section in settings.json
to control validation. You can modify either the workspace settings or the global settings depending on what you want to accomplish.
// Whether php validation is enabled or not.
"php.validate.enable": true,
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With