Automatic insertion of empty line in Java source on Eclipse -


i'd format java source on eclipse below,

public void mydosth() {  // [rule 1] 1 empty line above, @ beginning of method body // ... // [rule 2] 1 empty line below, @ end of method body  } 

rule 1 above can configured project->properties->java code style->formatter->blank lines->at beginning of method body.

how rule 2? configurable on eclipse, too?

in general, feasible automatically insert empty line after open brace { or before close brace } in java source on eclipse?

preferences -> java -> code style -> formatter -> edit profile -> white spaces -> declarations -> methods -> save new profile.


Comments

Popular posts from this blog

matlab - Deleting rows with specific rules -

php - MySQLi multi_query results for later use -