Installation#
Install PHP Tools for Visual Studio Code from the Visual Studio Code marketplace and activate it to unlock PHP IntelliSense, debugging, profiling, Composer support, and more.
Installation#
The extension is installed through Visual Studio Code's Extensions window.
- Navigate to the Extensions view (
View> Extensions). - Search for
"devsense.phptools-vscode". - Install the extension, then reload your VS Code window.

After the successful installation, activate your copy of PHP Tools for VS Code to unlock premium features.
License Activation#
Premium#
Valid license gives access to PREMIUM features. For more information about purchasing a license and FAQ, see our purchase page.
Activation#
To activate your premium license:
- Open the Command Palette from the View menu.
- Search for the command PHP Tools: Activate License.
- Enter your license key into the pop-up window and press Enter.

If there is no Internet connection, a popup message with URL will open. Open this URL on a machine with Internet connection. There will be futrher instructions with offline activation code.
Activation (Programmatically)#
Version 1.60 and newer
To activate the premium license programmatically, put the license key into the environment variable DEVSENSE_PHP_LS_LICENSE.
When the extension starts, and premium is not activated already, it checks the variable and tries to perform online activation silently. The result of activation can be checked in OUTPUT / PHP log.
Offline activation (programmatically): To activate the license without an Internet connection, go to https://www.devsense.com/purchase/validation, fill in the form and obtain an activation code. Set the whole code
{...}into the environment variableDEVSENSE_PHP_LS_LICENSEinstead of the license key.
Free Trial#
Not ready to commit yet? Try our premium features for free!
1. Open the Command Palette.
2. Search for the command PHP Tools: Begin Free Trial.
The trial lets you explore all PREMIUM features at no cost for 30 days.
Offline installation#
Download the .vsix installation file from Visual Studio Marketplace. Install it using the Command Palette with the command Extensions: Install from VSIX.
Pre-Release Installation#
PHP Tools are released in a Stable and Pre-Release version. By default, the stable version is installed. The Pre-Release versions are updated more frequently, containing the most recent fixes and new features.

Navigate to the Extensions view, choose PHP Tools, and click Install. In case, there is a Pre-Release version available, Install Pre-Release Version will appear.