SonarQube for IDE
Setting up SonarQube for IDE in Connected Mode with VS Code
This course outlines the process for setting up SonarQube for IDE within VS Code. To learn more about SonarQube for IDE and its Connected Mode features, see Sonar's online documentation.
Transcript
Hey there! In this video, you’ll learn how to set up SonarQube for IDE in Connected Mode with VS Code. SonarQube for IDE allows you to find and fix issues directly in VS Code before you even commit the code. Let's get started! The first step is to install the SonarQube for IDE extension. Go to the Extensions Marketplace and search for Sonar, then select Install. Once it’s installed, you’ll see the logo in your toolbar. Click on the logo to begin setting up Connected Mode. Connected Mode binds your IDE with your SonarQube instance and unlocks security analysis like SAST and secrets, and advanced bug detection. It allows you to perform SonarQube operations right in your IDE including AI Code Fix, marking false positives, and accepting issues. It also enables support for additional commercial languages. To see more about Connected Mode features, see Sonar’s documentation guide. To set up Connected Mode, select the plus icon next to the instance you want to connect to. Note that if connection configuration sharing is already enabled in your repository, you should have an option labeled Set up connection. Otherwise, you’ll need to enter your Server URL manually. Generate a User Token. If you're already logged in to your SonarQube instance, VS Code will generate the token automatically. Create a name for your connection, then select Save Connection. Next, you’ll bind your project to an existing project to copy its rules and settings. If you already have connection sharing enabled, your project will automatically bind. Otherwise, select Add Project Binding. Search and select it. The project is now bound. Lastly, if you want to share your Connected Mode configuration file with other developers working on the same project, select Share configuration. This stores the SonarQube Server or Cloud connection and project binding configuration in the repository, so everything is pre-configured for other developers working on that same repository. Now you’re ready to start finding and fixing issues in VS Code. See our additional videos to dive deeper into Sonar topics. Thanks for watching!