I found out how to change the default templates in IntelliJ when generating toString
and hashCode
/equals
implementations but I cannot find any proper documentation on what variables are accessible. Autocomplete helps but it does not show me any such option.
Basically, I want to change the toString
template to generate a prefix of Foo.Bar
for the following inner class
class Foo {
class Bar { }
}
where it now simply puts Bar
without the prefix. I do not want to add the package name!
Bonus questions: How can I set the global parameters? I am also trying to change the parameter name of the equals
template from o
to object
.