Please remember that SonarSource officially supports only the latest version of SonarLint for VS Code.
A limited version history is available on the Version History tab of the SonarLint Marketplace page.
Starting from v3.6 of SonarLint for VSCode, to set up SonarQube/SonarCloud connections, open a SONARLINT CONNECTED MODE view in VSCode.
Select either Add SonarQube Connection or Add SonarCloud Connection, and complete the fields.
For SonarQube connections, provide your SonarQube Server URL and User Token. For SonarCloud connections, provide your Organization Key and User Token. User Tokens should be generated on the SonarQube/SonarCloud side and pasted into the User Token field.
User Tokens can be generated using these pages:
- SonarQube -
- SonarCloud -
Connection Name is a friendly name for your connections. In the case of multiple connections, it also acts as a
SonarLint for VSCode v3.6 and above has the option to enable/disable Receive notifications when starting a new connection. Notifications can also be enabled/disabled from the UI while editing the connection setting (see next image below). Action buttons used to edit/delete existing, or create additional connections will be revealed in the UI when hovering over each connection.
Select Save Connection and verify that the new connection was set up successfully in the Connected Mode view.
Action buttons to edit/delete existing, or create additional connections will be revealed when hovering over each connection.
Establish your SONARLINT CONNECTED MODE as described above.
Project Bindings can be configured either at the workspace level or in every workspace folder by modifying the
settings.json file. Example:
If you plan to use multiple connections to different SonarQube servers and/or SonarCloud organizations, simply give a unique
connectionId to each entry and use them as reference in the binding. Example:
Connection details should be configured in the VSCode user settings (user token, SonarQube server URL, or SonarCloud organization). For security reasons, the token should not be stored in SCM with workspace settings (why we suggest configuring in VSCode user settings).
Example for SonarQube:
Example for SonarCloud:
Notifications from your project's Quality Gate can be toggled using the
disableNotifications field in a server connection definition.
SonarLint v3.5.4 and earlier allows bindings either at the workspace level, or at each workspace folder. Example:
If you plan to use multiple connections, to different SonarQube servers and/or SonarCloud organizations, simply give a unique
connectionId to each entry, and use them as reference in the binding. Example:
© 2015-2023, SonarSource S.A, Switzerland. Except where otherwise noted, content in this space is licensed under the GNU Lesser General Public License, Version 3.0. SONARLINT is a trademark of SonarSource SA. All other trademarks and copyrights are the property of their respective owners. See SonarSource.com for everything you need to know about the Sonar Solution.