Install Free
VS Code | AI capabilities | AI agents

SonarQube and AI agents in your IDE

On this page

SonarQube for IDE’s code analysis workflow is enhanced by a set of tools designed to integrate with AI agents. These tools allow you to interact with AI agents in natural language to perform specific SonarQube-related tasks directly within your IDE. This integration streamlines your development process by bringing the power of SonarQube analysis into your AI-assisted conversations, helping you focus on and resolve code quality and security issues more efficiently.

GitHub Copilot extension

SonarQube for VS Code includes tools for the GitHub Copilot extension in VS Code. The interactive tools come automatically with your installation and are best accessed with the Copilot Agent mode enabled. 

You can easily use SonarQube for VS Code's tools within the GitHub Copilot extension. Simply call the SonarQube for IDE tools by name or ask Copilot to perform a SonarQube-related action using natural language. Either way, Copilot will recognize what you need and guide you by opening the right window or asking for any extra details.

SonarQube for IDE tools

  • Security Hotspots
    • #sonarqube_getSecurityHotspots
    • Checks for security hotspots in your file. The tool takes a single file path as an argument.
  • Exclude File or Folder from Analysis
    • #sonarqube_excludeFiles
    • Updates the SonarQube for IDE analysis settings to exclude files and folders using known wildcard patterns.
  • Set up Connected Mode
    • #sonarqube_setUpConnectedMode
    • Copilot will walk you through the setup of connected mode with SonarQube Server or Cloud. If you already have a shared setup, Copilot will open the UI to complete the process, or prompt you to choose Server or Cloud before beginning a new connection setup.
  • Analyze File
    • #sonarqube_analyzeFile
    • Use this tool to analyze a file, including those you might have previously excluded.

Was this page helpful?

© 2008-2025 SonarSource SA. All rights reserved.

Creative Commons License