By default NetBeans generates 3 line getters and setters like so:
public int getFoo() {
return foo;
}
Is there a way to make it generate it in one line like so:
public int getFoo() {return foo;}
I did not find any get or set templates in Tools -> Options -> Editor -> Code Templates
Is there some other way to edit them or maybe a plugin?
As seem you can't really, but I've found a patch in this blog post which modifies Netbeans source.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With