Install Free
VS Code | Getting started | Installation

Installation

On this page

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:

  1. Select the Extensions icon in the left sidebar of VS Code. 
  2. Enter SonarQube for IDE in the search bar.
  3. Select Install.
How to find SonarLint in the VS Code Extension Marketplace.


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!

The Welcome to SonarLint introduction walkthrough screen.
The Welcome to SonarLint introduction walkthrough screen.

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?

© 2008-2024 SonarSource SA. All rights reserved. SONAR, SONARSOURCE, SONARQUBE, and CLEAN AS YOU CODE are trademarks of SonarSource SA.

Creative Commons License