VS Code | Getting started | Offline installation

Offline installation

Typically, offline installations start with a download of SonarQube for IDE from your IDE's Marketplace.

Please check the VS Code Marketplace > Version  History page to download the most recent versions.

If you don't have access to your IDE's Marketplace, you can find the SonarQube for VS Code VSIX release files here.

Instructions

To install SonarQube for IDE offline, you need to first get access to SonarQube for IDE's VSIX file from either the Marketplace or the release files as described above.

You can download official versions on the Marketplace, or sometimes an ad-hoc version can be built mainly for debugging purposes when a user reports a bug on the Sonar Community forum.

To install the extension, use the dedicated command Extensions: Install from VSIX... in the Visual Studio Code palette. Select the VSIX file from the explorer and install it.

Go so the VS Code command prompt to Install SonarLint from a VSIX.

CFamily analyzer

To optimize download times, the CFamily analyzer is not included by default with the VSIX release files. You can perform an offline installation by getting the analyzer's JAR file and deploying it in an installation folder.

Finding the installation path

By default, the CFamily analyzer is downloaded to a persistent folder next to the extension’s installation folder (see the Visual Studio Code documentation).

For example, if SonarQube for VS Code is installed at /home/user/.vscode/extensions/SonarSource.sonarlint-vscode-{extensionVersion}, a given analyzer will be downloaded to /home/user/.vscode/extensions/sonarsource.sonarlint_ondemand-analyzers/sonar-cfamily-version/{analyzerVersion}/sonarcfamily.jar

Performing the offline installation

  1. Find the required version of the analyzer, declared in the extension’s package.json file.
  2. With this version number, download the analyzer's JAR file from https://binaries.sonarsource.com/?prefix=CommercialDistribution/sonar-cfamily-plugin/.
  3. Deploy the downloaded JAR as /home/user/.vscode/extensions/sonarsource.sonarlint_ondemand-analyzers/sonar-cfamily-version/{analyzerVersion}/sonarcfamily.jar

Was this page helpful?

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

Creative Commons License