To set the PHP executable path, select the Edit in settings.json link under PHP > Validate: Executable Path, which will open your user settings.json file. To change the PHP settings, open your User or Workspace Settings ( ⌘, (Windows, Linux Ctrl+,)) and type 'php' to filter the list of available settings. : controls whether the validation is triggered on save (value: 'onSave') or on type (value: 'onType').Set this if the PHP executable is not on the system path. : points to the PHP executable on disk.
There are three settings to control the PHP linter: Tip: Using XAMPP? Install the full version of PHP in order to obtain the development libraries. This allows VS Code to stay current with PHP linter improvements. VS Code uses the official PHP linter ( php -l) for PHP language diagnostics. You get features like syntax highlighting and bracket matching, IntelliSense (code completion), and snippets out of the box and you can add more functionality through community-created VS Code extensions. Visual Studio Code is a great editor for PHP development.