Skip to content
| Marketplace
Sign in
Visual Studio Code>Linters>SpotbugsNew to Visual Studio Code? Get it now.
Spotbugs

Spotbugs

JIHUNKIM

|
13 installs
| (1) | Free
Visual Studio Code extension for Spotbugs
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

⚠️ This extension is under active development. Frequent changes and updates are expected.

SpotBugs for VS Code

Analyze Java code with SpotBugs directly in VS Code. View findings in a dedicated tree view and jump to offending lines with one click.

SpotBugs demo

Features

  • Analyze a single file or an entire workspace (Maven/Gradle projects)
  • Group findings by category and pattern with severity icons
  • Navigate to bug locations in source files

Requirements

  • Java 11 or later (JDK)
  • VS Code extension: “Language Support for Java by Red Hat” (redhat.java)

Getting Started

  1. Open a Java project folder in VS Code
  2. Run a command:
    • “SpotBugs: Analyze this workspace” (spotbugs.runWorkspace)
    • “SpotBugs: Analyze File/Folder” (context menu, spotbugs.run)
  3. Review results in the “SpotBugs” view (Activity Bar)

Commands

  • SpotBugs: Analyze File/Folder — Analyze selected file or folder
  • SpotBugs: Analyze this workspace — Build then analyze all projects in the workspace

Settings

  • spotbugs.effort: SpotBugs effort level (min, default, max). Default: default.
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft