Install Free
Visual Studio | Getting started | Installation

Was this page helpful?


On this page

For the most part, SonarLint can be installed directly from your IDE's Marketplace. Offline installations are also possible and previous versions are always available if needed.

SonarLint is available as an extension for Visual Studio version 2022


To install SonarLint from within Visual Studio:

  1. From Visual Studio, go to Extensions > Manage Extensions and search SonarLint for Visual Studio
  2. Select SonarLint for Visual Studio and click Download.

The extension will be installed after all instances of Visual Studio have been closed.

First taste of SonarLint

Now that you have SonarLint installed, open or create a new project containing source files in a programming language SonarLint can analyze out of the box. See the Rules page for languages that work with your IDE.

For example in C#, you can copy-paste this code snippet into your file and have a look at what SonarLint returns in the Error List:

// TODO: Say hello to SonarLint!
Your first taste of SonarLint will be highlighted with squiggles and an issue description in the Error List view window.

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

Creative Commons License