SonarQube IDE

Real-time verification for better, more secure code

Go beyond standard linting with real-time verification — flagging and fixing issues in AI-generated and human-written code as you create, before risk has a chance to compound.

Handle this exception or don’t catch it at all.
Open Not assigned error-handling
Where is the issue? Why is this an issue? Activity More info
20): Promise<T | string> {
21  let attempts = 0;
22  while (attempts < RETRY_MAX_ATTEMPTS) {
23    try {
24      return await get<T>(endpoint, path, query);
25    } catch (error) {
26      attempts++;
27      log(LogLevel.DEBUG, `API GET failed`);
28      await waitFor(RETRY_DELAY);
29    }
Handle this exception or don’t catch it at all.
30    }
31    throw new Error(`API GET failed, max attempts reached`);
32  }
Trusted by over 7M developers and 75% of the Fortune 100
Mercedes Benz
Nvidia
Santander
Merge with confidence

An essential tool for every development team

Verify

Solve

Learn

Real-time feedback

Your IDE is the best place to catch and fix coding issues — in AI-generated and human-written code alike. SonarQube for IDE verifies every line as you type, surfacing bugs and vulnerabilities in real-time so you can deliver secure, high-quality code without waiting for the build.

Resolve issues quickly

Address coding issues instantly with SonarQube for IDE. Get contextual help right where you code, including explanations, risks, rule details, and code examples. See a diff view, apply quick fixes, or use AI-generated fixes: all designed to resolve issues fast.

Become a better developer

SonarQube for IDE helps developers of all skill levels make better coding decisions. It works alongside you offering contextual knowledge & guidance designed to help you fix coding issues, uncover best practices, and learn along the way.

SonarQube for IDE features

Your IDE companion for quality and secure code

SonarQube for IDE integrates seamlessly into your favorite code editors like VS Code, IntelliJ, and more, so you can commit with confidence. It also supports cloud-based and AI IDEs such as GitHub Codespaces, GitPod, Windsurf, Trae, and Cursor.

7,000+ distinct types of issues detected

Powerful language-specific analysis detects bugs, code smells, vulnerabilities plus security hotspots and supports latest language standards. The large range of issues spans all attributes that contribute to the quality and security of code.

Real-time analysis, guidance, and quick fixes

On-the-fly verification gives you instant feedback as you code. More than a linter, SonarQube for IDE highlights coding flaws in AI-generated and human-written code, explains why each issue is harmful, and shows you how to fix it.

Unified team rules and analysis settings

Get coverage at every stage of your dev cycle — IDE to CI/CD and back. When connected to SonarQube Server or SonarQube Cloud, rules and quality gates synchronize to your IDE, so every contributor — and every AI agent — works to a single, standardized verification standard.

Open source projects

Explore our GitHub projects

What Sonar users are saying

Trusted by 7M+ developers

We’re not just keeping quality high; we’re actually able to go faster… AI makes it easier to deliver velocity, but only if you provide the right context from tools like SonarQube.
Stephen Byrnes Distinguished Engineer Cisco
Overall I love the tool and I’m excited to dial up our usage, particularly as tools like Claude Code gain much wider adoption and we may be forced to reckon with the quality of what we’re creating.
Eliott Weiser Sr. Engineering Manager Sirius XM
With over 2,000 repos, manual enforcement isn’t feasible… now, every pull request automatically goes through quality gate checks, security analysis, and secret detection.
Pravien Sammandhankumar Head of DevOps Freshworks
The central verification platform is how we… avoid that trade-off [between speed and safety]. It keeps the checks early. It keeps them consistent, creates visibility so the devs can move quickly.
Abhay Sharma Head of Cloud and DevOps Australian Unity
As we move toward using AI tooling for code generation, it is reassuring to know that all our code is checked and scanned to provide a sanity check on the quantity of code being produced.
Sarah Burgess Lead Product Manager, Security Xero

Gartner® names Sonar a Magic Quadrant™ Leader

AI is generating code faster than teams can govern it. Sonar was named a Leader, and placed highest on Ability to Execute. We built the verification layer the AI development cycle actually needs.

Download the report
A G2 Leader for 6 years running
4.6 / 5
FAQ

SonarQube IDE frequently asked questions

SonarQube for IDE is a free developer companion that brings real-time static analysis, quick-fix guidance, and security issue detection directly into your coding editor. It surfaces issues as you code, explains why they matter, and suggests clear next steps, so you can improve quality at the source without breaking your flow. This helps teams reduce rework, prevent defects early, and keep quality consistent across contributors. Beyond inline issue highlighting, SonarQube for IDE supports a focus on new code, encouraging new code quality practices that prevent the introduction of fresh issues. By catching bugs, vulnerabilities, and code smells during editing, it shortens feedback loops and complements your SonarQube or SonarQube Cloud project gates to keep overall health trending up.

SonarQube for IDE (formerly known as SonarLint) is broadly supported across the most popular development environments. SonarQube for IDE supports Visual Studio, VS Code, Eclipse, and the JetBrains family (including IntelliJ, PyCharm, and WebStorm). It also extends to AI-native editors built on the VS Code architecture, such as Cursor, Windsurf, and Trae. It provides real-time analysis for over 20 languages including Java, JavaScript, TypeScript, Python, C#, C++, PHP, and Go, with additional support for languages like COBOL, Apex, and PL/SQL when used in Connected Mode.

Support spans the major desktop IDEs used in professional development, enabling consistent patterns for issue highlighting, rule explanations, and quick-fix suggestions. This consistency helps organizations roll out quality at the source across diverse teams and tech stacks with minimal friction.

You can use Connected Mode to integrate SonarQube for IDE with SonarQube Server or SonarQube Cloud to align local analysis with the rules, quality profiles, and policies used on your central projects. This ensures the same standards and baselines apply in the IDE and in CI, reducing surprises when code is reviewed or merged.

Once connected, issues detected locally reflect the same rule configuration as your server-side analysis. This supports a focus on new code workflows: developers see exactly what will matter at merge, fix issues early, and reliably pass quality gates governed by your project configuration.

SonarQube for IDE covers a broad set of languages, including popular backend, frontend, and infrastructure languages, and it continues to evolve with ecosystem needs. It has support for over 20 languages including Java, JavaScript, TypeScript, Python, C#, C++, PHP, and Go, with additional support for languages like COBOL, Apex, and PL/SQL when used in Connected Mode. Coverage includes rules for reliability, security, maintainability, and test-related guidance to help you deliver quality code continuously. Framework-specific checks help flag pitfalls common to certain stacks, while general best-practice rules apply across languages. This combination provides actionable findings for both seasoned engineers and newcomers, enabling quality at the source in mixed repositories and monorepos.

To enable focus on new code, you can toggle the setting directly within your IDE. This feature filters the issue list to show only the problems introduced in your current development cycle (the "New Code Period"). You can also set up your project's new code definition in SonarQube Server or SonarQube Cloud, then connect your IDE so the same definition and rules apply locally. With this, SonarQube for IDE highlights issues in changed files, promoting new code quality habits that steadily raise standards without massive refactors.

This approach encourages teams to improve quality incrementally, preventing new problems from entering the codebase while allowing planned remediation of older parts. The result is a practical path to quality at the source that aligns developer workflows with team quality gates and organizational expectations.

The issues you see in SonarQube for IDE are driven by the rules active in your project's quality profile on SonarQube Server or SonarQube Cloud if you are in Connected Mode. When your organization updates rules, your IDE analysis reflects those changes, ensuring your local findings match CI and code review expectations.

You can tailor profiles to your tech stack and risk tolerance, enabling or disabling rules as needed. This centralized governance helps teams standardize on quality code practices while giving developers precise, up-to-date feedback inside their editor.

Yes—SonarQube for IDE flags vulnerabilities, security hotspots, and patterns that can lead to injection, insecure configurations, and other risks. Findings include contextual explanations and remediation guidance to help you fix problems early, reducing the chance of security debt accumulating.

While some security issues require full-project or build-context analysis, early indications in the IDE steer you toward safer patterns as you write code. Some advanced security findings (e.g., dependency-aware Advanced SAST or SCA) are evaluated on the server side depending on your edition/features, complementing IDE feedback. Combined with server-side analysis, this layered approach supports a focus on new code and strengthens your overall security posture.

Yes, SonarQube for IDE includes robust Secrets Detection as a core security feature. It acts like a real-time spellchecker for sensitive data, catching credentials the moment they are typed or pasted into your editor. It flags potential secrets (like API keys, database passwords, or private keys) before you commit them to your repository, preventing the need for costly "secret rotation".

SonarQube for IDE provides instant feedback before you commit, aligning with the rules and gates that your CI will enforce. Fixing issues locally reduces PR churn, speeds reviews, and increases the likelihood that your branch will pass project quality gates on the first try.

When combined with branch and pull request analysis in SonarQube Server or SonarQube Cloud, teams get a cohesive experience: developers prevent issues in the IDE, and CI validates changes against the same standards. This end-to-end loop operationalizes quality at the source throughout the lifecycle.

You can use SonarQube for IDE independently without SonarQube Community Build, Server, or Cloud for local feedback, but connecting it to SonarQube Community Build, Server or Cloud unlocks additional features and provides more value. Many organizations start with the Community Build of SonarQube and then adopt additional capabilities as governance needs expand.

A server connection ensures your IDE reflects the exact rule set and quality profiles used centrally, which is important for teams that rely on consistent quality gates. This helps developers maintain new code quality and avoid mismatches between local development and CI results.

Install SonarQube for IDE in your editor, then open your repository and run a local analysis to see initial findings. If your team uses SonarQube Server or SonarQube Cloud, configure the connection so your local checks match the project's rules and quality profiles.

Next, confirm your project's new code definition and quality gate standards on the server so your IDE focuses on the most relevant changes. Encourage the team to fix issues as they code, leveraging quick fixes and explanations to build consistent quality code habits that scale across contributors.

Icon

Get SonarQube for IDE updates delivered directly to your inbox

By signing up, you will receive product and marketing information about upcoming SonarQube for IDE updates, new releases, news, and events.

Choosing to proceed means that you agree to the storing and processing of your personal data as described in SonarSource’s Cookie Policy. You can opt out of SonarSource communications at anytime.

Unsubscribe