IntelliJ is not been too smart when instantiating objects

Take a look at the screenshot:

Screen shot 2011-05-31 at 7.08.15 AM.png

What I would expect is that DecimalFormat is at the top of the list... all things that appear in the top are even not compatible types with the object I'm trying to instantiate.

Is there a way to make it work as I want? I usually write new Class(...) first and then Ctrl+Alt+V, which makes things even faster... however, I'd like to see it working if I first declare de object and then instantiate it.


Thanks a lot...

0
3 comments

just use:  Ctrl + Shift + Space

0

Thanks! That worked like a charm.

0

you are welcome,
for even more fun, see also this post:

http://blogs.jetbrains.com/idea/2009/09/super-method-completion/

cheers
/m

0

Please sign in to leave a comment.