Installation
For the most part, SonarQube for IDE can be installed directly from your IDE's Marketplace. Offline installations are also possible and previous versions are available if needed.
Instructions
SonarQube for VS Code can be installed like any other VS Code extension as explained in the VS Code documentation. The standard installation workflow for VSCode, VSCodium, GitHub Codespaces, and GitPod among others, is as follows:
- Select the Extensions icon in the left sidebar of VS Code.
- Enter
SonarQube for IDE
in the search bar. - Select Install.
Once the installation is complete, select the Reload Required button to complete the process.
Using the standard method, SonarQube for VS Code will be downloaded from:
- the Microsoft Visual Studio Marketplace for VSCode and GitHub Codespaces.
- the OpenVSX community marketplace, for VSCodium and GitPod.
As an alternative, the VSIX package for any given version can be downloaded from the /sonarlint-vscode Release page on GitHub and installed using the Install from VSIX
command in accordance with Microsoft’s Install from a VSIX instructions.
First taste of SonarQube for IDE
Now that you have SonarQube for VS Code installed, open or create a new project containing source files in a programming language SonarQube for VS Code can analyze out of the box. See the Rules page for languages that work with your IDE.
SonarQube for VS Code offers a walkthrough to help you make the best out of it SonarQube for IDE; it covers the basic features to help you:
- see issues in your code.
- learn more about those issues and fix them.
- synchronize the analysis configuration with other contributors.
- diagnose problems and share feedback with the SonarQube for IDE team.
The walkthrough will be automatically displayed when you install SonarQube for IDE for the first time, and you can manually open it anytime from the command palette: search Welcome Open Walkthrough…, then select Welcome to SonarQube for IDE! to have a look!
Updating SonarQube for IDE in VS Code
By default, SonarQube for VS Code will update automatically as soon as a new release is published. However, SonarQube for VS Code will not update automatically for users who intentionally pin a previous version of the extension.
Was this page helpful?