Thanks for the reply, afragen. “VS Code uses the official php linter (php -l) for PHP language diagnositcs.” (see https://code.visualstudio.com/docs/languages/php#:~:text=VS%20Code%20uses%20the%20official,current%20with%20PHP%20linter%20improvements.. As I understand it, PHPCS (PHP Code Sniffer) is itself a linter. What is the advantage of using PHPCS over VS Code’s native/built-in PHP linter? By the way, it turns out that the JSON configuration file that I posted has three settings associated with the VS Code PHP linter, one of which is ‘php.validate.executablePath’.
Related topics
Topic | Replies | Views | Activity | |
---|---|---|---|---|
VS Code doesn't connect to php | 8 | 164 | October 17, 2024 | |
VS Code -> php.validate.executablePath | 2 | 2870 | May 5, 2023 | |
VS Code PHP error and missing PHP Path | 2 | 2025 | February 20, 2024 | |
Where is PHP.exe? | 8 | 15453 | August 25, 2020 | |
How to link LocalWP PHP and Composer installations to VSCode? | 5 | 6200 | June 20, 2022 |