Surround With... Broken?
I've got this snippet of code:
int result = 0;
int keys = event.getKeys();
if (keys & MouseEvent.ALT_KEY != 0)
result = result + KeyEvent.ALT_MASK;
Now I get an error on the if statement as the "keys &
MouseEvent.ALT_KEY" clause needs brackets around it. If I select that
section, and execute 'Code|Surround With...' I don't get the (expr) item
I want, that's usually the first place in the list. All I get is the
list of Live Templates defined.
I suppose it could be because that line of code is marked with an error,
but this is the very operation I need to fix it!
Is anyone else noticing this? Seems like it must be a recent change...
N.
Please sign in to leave a comment.
ps. I should say I'm seeing the basic items like (expr) appear if I
select other things in the code.
N.
ps. I should say I'm seeing the basic items like (expr) appear if I
select other things in the code.
N.
Hi Nathan,
That is a bug, please submit corresponding ticket to the tracker.
Denis
On 02/09/2011 18:00, Denis Zhdanov wrote:
>
>
>
Done : http://youtrack.jetbrains.net/issue/IDEA-73868
Thanks,
N.