analytically / innerbuilder

IntelliJ IDEA plugin which generates an inner builder class

Home Page:https://plugins.jetbrains.com/plugin/7354-innerbuilder/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add option to name the "newBuilder" method just "builder"

almilli opened this issue · comments

Can you add an option to name the "newBuilder" method that gets generated to be named "builder" like this?

    public static Builder builder() {
        return new Builder();
    }

I'd accept a PR :-)

commented

would be awesome, will see if I can rustle up the time during lockdown to do a PR.

commented

how would we want this option specified?
I am not sure a second menu would work?
It would need to be a setting somewhere?

commented

maybe a checkbox under newBuilder() to say "rename newBuilder() to builder()"
so if both are checked we have "builder"