Live Templates in code completion

I've just started using IntelliJ community edition (and also 9.0 Beta) and I can't seem to get the Live Templates to show up in the normal code completion dialog. If I type Ctrl+J I get the list of all live tempaltes showing so they are enabled. I have seen this on another install on another machine and not sure what I have wrong no my machine.

Is there someplace I shold be looking?

Thanks

6 comments
Comment actions Permalink

Hi Colin,

I have never seen the live templates in ctrl+space code completion, but what I normally do is type a couple of characters (for example 'sout') and then press 'tab'. The 'sout' will then be replaced by a Live Template.

I hope that helps,

Erik Pragt

0
Comment actions Permalink

I don't get anything when I press tab except a highlighted syntax error :) the shortcut key is set to tab too. Weird

0
Comment actions Permalink

Did you test with 'sout<tab>'? Or did you try something different?

0
Comment actions Permalink

Hello Colin,

I've just started using IntelliJ community edition (and also 9.0 Beta)
and I can't seem to get the Live Templates to show up in the normal
code completion dialog. If I type Ctrl+J I get the list of all live
tempaltes showing so they are enabled. I have seen this on another
install on another machine and not sure what I have wrong no my
machine.

Is there someplace I shold be looking?


IntelliJ IDEA never had the feature of displaying live templates in the code
completion dialog, and we don't currently plan to add it. To expand a live
template, type its prefix and then the expansion character (Tab by default).

--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0
Comment actions Permalink

Thanks all, I had a brain explosion. I think my fingers were hitting ctrl-space whilst my brain wanted tab. cheers

0
Comment actions Permalink

I didn't want to start a new thread to chime in on this...

Not showing it in code completion was a little confusing for some of us that have to go back and forth between IDEA and ReSharper.  In RS, the live templates show up as I type, but they don't in IDEA...It's the little things that trip us up. In the same way I can't find the 'unwrap code' command in Resharper but it exists in IntelliJ. I realize we can't get everything from the IDEA line in RS, but man do I miss some of these things. (Task lists? omgplz!!!!)

0

Please sign in to leave a comment.