MinecraftDev
MinecraftDev copied to clipboard
[Suggestion] Make translation folding work with constants
Minecraft Development for IntelliJ plugin version
2024.3-1.8.5 (will update to 2025 soon)
Description of the feature request
hello! i'm just requesting that the existing folding that happens with string literal lang keys (with Text.translatable(.) and I18n.translate(.) for instance) can happen with constants. i don't know anything about plugin dev but since constants are constant, i don't see why they can't be used here. if it helps, intellij does a similar thing natively with constants that are made up of other constants (ex. final int LENGTH = SIDE_LENGTH + TALL_LENGTH;). maybe this should be a setting but idk i'm just after the feature lol
how it works right now:
how i'd also like it to work: