Pls add a Reformat Import Only Button under "Code"

Started by SparkleArts on

Topic category: Feature requests and ideas for MCreator

Joined Feb 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Pls add a Reformat Import Only Button under "Code"

Seriously why does only these Buttons under "Code" exists if you open a file with the integrated Code Editor:
- Reformat code and imports
- Reformat code only

 

I write mostly my custom Code in the style like this:

event.getToolTip().add(
            Component
                .translatable("item.ascension_grove.ascension_key.tooltip")
                .withStyle(net.minecraft.ChatFormatting.GRAY)
                .append(Component.literal(ownerName)
                                .withStyle(net.minecraft.ChatFormatting.GOLD))
        );

But the "Reformat code only" Button reformat that into a one line. But when you use a API Mod like Simple Config and create a config with that in one line then the line is insanely large and you need to scroll to the right.