|
http://www.jindent.com |
Previous: Labels
|
Next: Braces Style
|
| Indent case from switch |

switch-case
indentation. This option can control indentation of case blocks from
its switch token.case from switch to value 4:
|
switch(a)·{ ····case·1: ········System.out.println("one"); ········break; ····case·2: ········System.out.println("two"); ········break; ····case·3: ········System.out.println("three"); ········break; ····default: } |
case from switch with value 0:
|
switch(a)·{ case·1: ····System.out.println("one"); ····break; case·2: ····System.out.println("two"); ····break; case·3: ····System.out.println("three"); ····break; default: } |
|
See also: | White space before colons in switch-case blocks |
| Indent block { ... } from case |

case declarations starting with blocks { ... } from the
case label.
|
switch(a)·{ ····case·1:· ····{ ········System.out.println("one"); ········break; ····} ····case·2: ····{ ········System.out.println("two"); ········break; ····} ····case·3: ····{ ········System.out.println("three"); ········break; ····} ····default: } |
|
switch(a)·{ ····case·1:· ····{ ········System.out.println("one"); ········break; ····} ····case·2: ····{ ········System.out.println("two"); ········break; ····} ····case·3: ····{ ········System.out.println("three"); ········break; ····} ····default: } |