Smart Completion after 'new'

Smart Completion (Ctrl+Shift+Space) after 'new' keyword (from build 0.4.886 for IntelliJ IDEA 106.532):



Best regards,
Alexander Podkhalyuzin.

5 comments
Comment actions Permalink

Thanks for implementing this, much appreciated :)

I assume the "new <anonymous implementation>" was also added as part of this feature? (I don't remember seeing it offered before)

-tt

0
Comment actions Permalink

Yes, but just for smart completion. For basic completion it will be implemented soon.

Best regards,
Alexander Podkhalyuzin.

0
Comment actions Permalink

Thanks, I never noticed that this was proposed for "regular completion" in Java :)

0
Comment actions Permalink

Hi Alexander,

Variants are provided after 'new' as rhs of simple var assignment.
However, in other cases they are not, for example (ugly Java-style Scala):

val x: Array[Date] = Array(new Date())
x(0) = new <caret>


-tt
0
Comment actions Permalink

Another nice feature, for those of us interfacing with Java code, is smart completion for enum members.

If the expected type in the current context is a Java enum type, it would be convenient to have the member values suggested when invoking smart completion.

-tt

0

Please sign in to leave a comment.