-
Notifications
You must be signed in to change notification settings - Fork 335
Open
Labels
Description
In IntelliJ → Settings → Editor → Color Scheme → Dart, the Annotation color setting is only applied to const annotations (e.g. @freezed), but not to class-based annotations (e.g. @Freezed()).
Current Behavior
-
@freezed- Highlighted using the
Metadatacolor (as expected for annotations).
- Highlighted using the
-
@Freezed()Freezedis highlighted as a regular class name.- Inherits color from
Classes → Class nameinstead of the Annotation/Metadata color.
This results in inconsistent highlighting between const and class-based annotations.
Expected Behavior
Both forms of annotations:
@freezed
@Freezed()should use the same Annotation/Metadata color setting in the Dart color scheme.
Why This Matters
Class-based annotations are very common in Dart (e.g. @Freezed(), @JsonSerializable(), etc.). Treating them as regular classes instead of annotations makes it harder to visually distinguish annotations from other class usages and reduces consistency in syntax highlighting.
Reactions are currently unavailable