> Chriss Meril wrote :
> 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.
Chriss,
As fas as I know,
line 2: int i = 0 ;
line 3: int j = 0 ;
is perfectly valid in java.
I simplified some real code to the extreme to keep the example short.
I could have written :
> line 1: if (true)
> line 2: i = 0 ;
> line 3: j = 0 ;
Same problem, same "bug"
Alain Ravet.
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