I imagine this is because IDEA recognizes that the combination of
the two lines does not make a valid statement - but it gives no
indication of the condition - and I agree that it should not
matter. I run across this frequently - it is rather annoying.
Alain Ravet wrote:
> You CANNOT go
> from
>
> line 1: if (true)
> line 2: int i = 0 ;
> line 3: int j = 0 ;
> to
> line 1: if (true) {
> line 2: int i = 0 ;
> line 3: int j = 0 ;
> line 4: }
>
> with [Alt-Ctrl-T]
>
> In other words,
> it works
> when you put the cursor on line 2,
>
> => result :
> line 1: if (true) {
> line 2: int i = 0 ;
> line 3: }
> line 4: int j = 0 ;
>
> but does not work
> when you select line 2 and 3
>
>
>
> Alain Ravet
>
>
> _______________________________________________
> Eap-list mailing list
> [EMAIL PROTECTED]
> http://www.intellij.com/mailman/listinfo/eap-list
>
--
*********************************
Chris Merrill
[EMAIL PROTECTED]
*********************************
_______________________________________________
Eap-list mailing list
[EMAIL PROTECTED]
http://www.intellij.com/mailman/listinfo/eap-list