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...

Comment actions Permalink

just use:  Ctrl + Shift + Space

Comment actions Permalink

Thanks! That worked like a charm.

Comment actions Permalink

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



Please sign in to leave a comment.