See which Java methods and fields are public, protected, package-private or private at a glance — a members panel next to Outline with UML visibility marks (+ # ~ −) and colors.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
See at a glance which members of a Java class are public, protected, package-private or private.
VS Code's Outline shows the same icon for every method, whatever its access modifier
(vscode-java#1544).
This extension adds a Java Members panel next to Outline in the Explorer:
▾ OrderService + public
+ placeOrder(Order) + public
# validate(Order) # protected
~ notifyWarehouse(Order) ~ package-private
− repository − private · final
UML visibility marks+ # ~ − plus the word, so it works without relying on color.
Colored icons: green public, yellow protected, blue package-private, red private (follows your theme's chart colors).
Implicit visibility is shown correctly: interface members are public, enum constants are public,
enum constructors are private, members without a modifier in a class are package-private — marked “(implicit)”.
Summary line: how many public / protected / package / private members the file has.
Filter: all members, public API only (public + protected), or public only.