To use the zobo.php-intellisense extension with XAMPP, you must first install the extension in Visual Studio Code and then ensure VS Code can find the PHP executable provided by XAMPP.
Step 1: Install the Extension in VS Code
- Open Visual Studio Code.
- Go to the Extensions view by clicking the Extensions icon in the Activity Bar or by pressing
Ctrl+Shift+X. - In the search bar, type
zobo.php-intellisense. - Click Install next to the extension in the search results.
Step 2: Configure the PHP Executable Path
The extension needs to know where your PHP installation (which comes with XAMPP) is located to provide code intelligence and run the language server.
- Find the path to your
php.exefile. In a standard XAMPP installation on Windows, it is usuallyC:\xampp\php\php.exe. - In VS Code, open the Command Palette by pressing
Ctrl+Shift+P. - Type “Open Settings” and select Preferences: Open User Settings or Preferences: Open Workspace Settings if configuring for a specific project.
- In the Settings tab, search for
php.executablePath. - Enter the full path to your
php.exefile in the field provided, for example:C:\\xampp\\php\\php.exe. Note the double backslashes which are often required in JSON settings. - Relaunch VS Code for the changes to take effect.
Step 3: Disable Built-in PHP Language Features
To avoid conflicts, it is recommended to disable VS Code’s default PHP language features, which the zobo extension replaces.
- Go back to the Extensions view (
Ctrl+Shift+X). - Search for
@builtin php. - Find the extension named PHP Language Features and click the Disable button for it.
- Ensure PHP Language Basics remains enabled for basic syntax highlighting.







