Ctrl+(Shift+)Space and enums/annotations

Hi.

I noticed that completions/suggestions that IDEA is usually offering on many places through CtrlSpace or CtrlShift+Space doesn't actually work for annotations or enums.

I start to type @, and beginning of my annotation, and press metioned keys, and it doesn't filter available annotations.

When I want to iterate through enum values by live template 'iter', and when I point out to my enum instance, typing . (dot) afterwards, hoping it will find values() method in it, it simply doesn't...etc...
..some similar cases...

Cheers,
Vjeran

1 comment
Comment actions Permalink

John Smith wrote:

Hi.

I noticed that completions/suggestions that IDEA is usually offering on many
places through CtrlSpace or CtrlShift+Space doesn't actually work for
annotations or enums.

I start to type @, and beginning of my annotation, and press metioned keys,
and it doesn't filter available annotations.


What do you mean by available? It seems to work for me - it shows Deprecated,
Nullable, etc.

When I want to iterate through enum values by live template 'iter', and when
I point out to my enum instance, typing . (dot) afterwards, hoping it will
find values() method in it, it simply doesn't...etc... ..some similar
cases...


I think this is a bug in live templates design. This bothers me all the time. I
think in this case it's because the left hand type does not match the right hand
type, even though the left hand type should stay as Object until you press tab
or enter.

0

Please sign in to leave a comment.