I did a stupid way. Typing "frame.setVisibletrue", then move cursor before "true" then Ctrl + Shift + Enter :-D
I should do like this: Type "frame.set" (or something), Ctrl + Space to show the intellisense list, then Ctrl + Shift + Enter to complete + wrap "true".
Actually, I think users will rarely use this completion feature.
Actually, I think users will rarely use this completion feature.
Not true, I have been wanting this for ages. I often have a variable that I discover I have to transform in some way, so this fits my workflow admirably. (I previously had a live template "wrap with method call" but it was a bit rough-and-ready.)
But I found that it doesn't work in an consistent way.
For
true]]>
I press Ctrl + Space, IDEA will show intellisense list (even the list only contains setVisible) and this time I can press Ctrl + Shift + Enter to complete + wrap "true".
But for
"title"]]>
If I press Ctrl + Space, IDEA will complete setTitle(), and I have no way to wrap "title".
Yeah I tried it a couple of times but it didn't seem to do anything...
N.
t800t8 wrote:
Although specifically trying it now, it seems to work :S
N.
Nathan Brown wrote:
>> I tried new code completion feature with Ctrl + Shift + Enter but it
>> doesn't work. Does anybody have same problem?
For
it generates
And for
it generates
:S
You are executing it from within 'code completion mode' yes?
N.
t800t8 wrote:
Sorry, I don't understand what you mean. But I tried as same as in releate notes: http://www.jetbrains.net/confluence/display/IDEADEV/EAP7087Release+Notes
I meant that you'd executed code complete in some form first, but the
release notes show this so I guess you are then :)
N.
t800t8 wrote:
I did a stupid way. Typing "frame.setVisibletrue", then move cursor before "true" then Ctrl + Shift + Enter :-D
I should do like this: Type "frame.set" (or something), Ctrl + Space to show the intellisense list, then Ctrl + Shift + Enter to complete + wrap "true".
Actually, I think users will rarely use this completion feature.
Message was edited by:
t800t8
t800t8 wrote:
Not true, I have been wanting this for ages. I often have a variable
that I discover I have to transform in some way, so this fits my
workflow admirably. (I previously had a live template "wrap with method
call" but it was a bit rough-and-ready.)
Now if only I could get it to work ;)
R
OK, I see.
But I found that it doesn't work in an consistent way.
For
I press Ctrl + Space, IDEA will show intellisense list (even the list only contains setVisible) and this time I can press Ctrl + Shift + Enter to complete + wrap "true".
But for
If I press Ctrl + Space, IDEA will complete setTitle(), and I have no way to wrap "title".
Sounds like a bug to me, have you filed a JIRA issue?
R
Have just filed it http://www.jetbrains.net/jira/browse/IDEA-13896