Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>java-file-iconsNew to Visual Studio Code? Get it now.
java-file-icons

java-file-icons

MasterBlaze9

|
8 installs
| (0) | Free
Different icons for Java classes, interfaces, enums, etc.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Java File Icons

Visual badges for Java files based on their content (class, interface, enum, etc.)

Features

This extension adds colored badges to Java files in the VS Code explorer, making it easy to distinguish between:

  • C - Classes (Orange)
  • I - Interfaces (Blue)
  • E - Enums (Green)
  • A - Abstract Classes (Purple)
  • R - Records (Yellow)
  • @ - Annotations (Red)

The extension analyzes the actual file content, not just the filename, to determine the correct type.

Usage

Simply install the extension and open a Java project. Badges will automatically appear next to Java files in the explorer.

Configuration

You can customize the badge characters in VS Code settings:

{
  "javaFileIcons.classBadge": "C",
  "javaFileIcons.interfaceBadge": "I",
  "javaFileIcons.enumBadge": "E",
  "javaFileIcons.abstractBadge": "A",
  "javaFileIcons.recordBadge": "R",
  "javaFileIcons.annotationBadge": "@"
}

Requirements

  • VS Code 1.85.0 or higher
  • Java files (.java)

Known Limitations

  • Badges are visual indicators, not full icon replacements
  • File content is cached for performance; save the file to update the badge

Release Notes

0.0.1

Initial release with support for:

  • Classes
  • Interfaces
  • Enums
  • Abstract Classes
  • Records
  • Annotations

License

MIT

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