Quantcast
Channel: JetBrains Developer Community : Thread List - IntelliJ IDEA Users
Viewing all articles
Browse latest Browse all 5661

Code completion strange behaviour (part deux)

$
0
0

Here's another question about the logic behind IDEA's code suggestions (Using IDEA 12.1). Consider this screenshot:

codesuggestions.png

Why does IDEA not select setText(String text) for the JLabel? I have to either use the cursor keys to get to the right line, or I have to go back and change the "t" into "T" manually, because if I hit "(" now, the method "settext(" is not recognized (obviously), but if I hit "enter", the wrong method is inserted.

 

Note that this is the auto-popup. If I hit CTRL-SHIFT-space, "setText(String text)" is selected.

 

Edit: When I set the option in Settings -> Editor -> Code completion it does work as desired, although the description of the checkbox does not suggest that it would do that.

codesuggestions2.png

Result:

codesuggestions3.png


Viewing all articles
Browse latest Browse all 5661

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>