2 comments
Comment actions Permalink

Are you intentionally missing breaks after each case?

Is anyone else experiencing this? If I create a switch statement all
of my cases are properly lining up (I've selected to indent them from
the switch) but the default never aligns with the cases unless I
format my code (either via VS or R#).

switch ( variable ) {
case 1:
case 2:
default:
break;
}
Actually, as I'm typing this I found that I can do the following:

  • if I <TAB> to autocomplete the default it aligns after I type the

colon

  • I can type the entire keyword (which is what I have a tendency to

do) and
type the colon then backspace over it and retype it. That's kind of a
hassle.
I'd rather have it just work when I type the colon the first time.

Thoughts?

Aaron



0
Comment actions Permalink

For the sake of demonstration, yes; simply to illustrate the indentation
that I'm getting.

"Saad Rehmani" <saad.rehmani@gmail.com> wrote in message
news:443af12225b258c882a6c22335ca@news.jetbrains.com...

Are you intentionally missing breaks after each case?

>
>> Is anyone else experiencing this?  If I create a switch statement all
>> of my cases are properly lining up (I've selected to indent them from
>> the switch) but the default never aligns with the cases unless I
>> format my code (either via VS or R#).
>>
>> switch ( variable ) {
>> case 1:
>> case 2:
>> default:
>> break;
>> }
>> Actually, as I'm typing this I found that I can do the following:
>>
>> * if I



0

Please sign in to leave a comment.