@OverrideAfter typing
public String toString() {
return super.toString();
}
@Override
and return
, the cursor in the new line is already indented 8 spaces. I have to manually correct it. I have to remember not to press CTRL-SHIFT-F to format code, since it will ruin my carefully and manually formated code and format java annotations in its own unique way.Finally, it was fixed in NetBeans 5.5 beta and formats it the way I (I guess most people) like:
@OverrideThis is also how jEdit and Eclipse 3.2 formats java annotations. Note that
public String toString() {
return super.toString();
}
@Override
doesn't need to be in its own line, but it looks cleaner to me.Tags: