http://www.jindent.com |
|
Next: Enum |
Brace style for switch case statements |
Left brace { new line |
switch (a) { ... |
switch (a) ... |
Right brace } new line |
Indent left brace { |
switch·(a) ····{ ····... |
switch·(a) { ... |
switch·(a)·{ ... |
switch·(a){ ... |
Indent right brace } |
switch·(a) ····{ ····... ····} |
switch·(a) { ····... } |
Indent after right brace } |
Cuddle braces of empty blocks {} |
switch (a) {} |
switch (a) { } |
Indent cuddled braces {} |
switch·(a){} |
switch·(a)·{} |
Prohibit blank lines after left brace { |
switch (a) { ¶ // comment with a preceding blank line case 42 : // some code here break; ¶ ... } |
switch (a) { // comment with a preceding blank line case 42 : // some code here break; ¶ ... } |
See also: | Jindent - Settings - Formatter - Java / SQLJ - Blank Lines - Comments , Jindent - Settings - Formatter - Java / SQLJ - Blank Lines |
If number of lines in body is at least ... then insert blank line after { |
If number of lines in body is at least ... then insert blank line before } |
Do not insert blank line before single left brace |
See also: | Jindent - Settings - Formatter - Java / SQLJ - Braces Style - Presets |