Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to disable PHP validation in Visual Studio Code?

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?

like image 955
Ken Avatar asked Nov 21 '15 19:11

Ken


1 Answers

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,
like image 191
Ashhar Hasan Avatar answered Oct 13 '22 23:10

Ashhar Hasan