Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>Agent SonarNew to Visual Studio Code? Get it now.
Agent Sonar

Agent Sonar

Prashant Pandey

|
1 install
| (0) | Free
Seamless SonarQube integration with GitHub Copilot - analyze projects, fetch issues, apply fixes automatically
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Agent Sonar

🎧 Agent Sonar by Prashant Pandey - Seamless SonarQube integration with GitHub Copilot for VS Code

Features

  • 🔍 One-Click Project Analysis - Glowing "Analyze Project" button in the sidebar
  • 📊 Project Metrics Dashboard - View bugs, vulnerabilities, code smells, security hotspots, ratings
  • 🛡️ Security Hotspots - Fetch and navigate security hotspots
  • 🐛 Code Issues - Fetch bugs, vulnerabilities, code smells
  • 💬 Copilot Chat Integration - Use @sonar commands in Copilot Chat
  • 🔧 Fix Suggestions - Get AI-powered fix recommendations
  • 📋 Project Selection - Dropdown to select from available SonarQube projects

Quick Start

  1. Open VS Code Settings (Ctrl+,)
  2. Search for "Agent Sonar"
  3. Enter your SonarQube Server URL
  4. Enter your API Token
  5. Use "Select Project" command to pick a project
  6. Click the glowing Analyze Project button!

Chat Commands

  • @sonar show hotspots - Fetch security hotspots
  • @sonar show issues - Fetch code issues
  • @sonar fix - Get fix for issue at cursor
  • @sonar /fixall - Fix all issues in file
  • @sonar /analyze - Analyze project

Publishing to VS Marketplace

Prerequisites

  1. Create Azure DevOps Organization (if you don't have one):

    • Go to https://dev.azure.com
    • Sign in with Microsoft account
    • Create an organization
  2. Create Personal Access Token:

    • Go to https://dev.azure.com/{your-org}/_usersSettings/tokens
    • Create New Token
    • Set Organization: "All accessible organizations"
    • Set Scopes: Select "Marketplace" > "Manage"
    • Copy and save the token!
  3. Create Publisher:

    • Go to https://marketplace.visualstudio.com/manage/createpublisher
    • Publisher ID: prashant-pandey (must match package.json)
    • Display Name: Prashant Pandey
    • Fill other details and create

Publishing Steps

# Install vsce globally (if not installed)
npm install -g @vscode/vsce

# Login with your PAT
vsce login prashant-pandey
# Enter your Personal Access Token when prompted

# Publish the extension
cd C:\Users\pandeyp2\sonarqube-copilot
vsce publish

# Or publish with a specific version bump
vsce publish minor  # 1.0.0 -> 1.1.0
vsce publish patch  # 1.0.0 -> 1.0.1

Alternative: Publish VSIX directly

  1. Go to https://marketplace.visualstudio.com/manage/publishers/prashant-pandey
  2. Click "New Extension" > "Visual Studio Code"
  3. Upload agent-sonar-1.0.0.vsix

Version History

v1.0.0

  • Initial release
  • Analyze Project button with glowing effect
  • Project metrics dashboard (bugs, vulnerabilities, code smells, ratings)
  • Security hotspots fetching
  • Code issues fetching
  • Copilot chat integration (@sonar)
  • Fix all / Fix by type commands
  • Project selection dropdown

License

MIT License - See LICENSE file

Author

Prashant Pandey

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft