This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 168345 - Smarter auto-complete
Summary: Smarter auto-complete
Status: RESOLVED WONTFIX
Alias: None
Product: editor
Classification: Unclassified
Component: Completion & Templates (show other bugs)
Version: 6.x
Hardware: All Windows 7 x64
: P3 blocker with 1 vote (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-09 15:24 UTC by karmaflute
Modified: 2016-07-07 07:27 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description karmaflute 2009-07-09 15:24:52 UTC
When I type "System.out.prin" the only options are variations of "print" and "println". Then, it would be nice, if
auto-complete would fill in the closest match "System.out.print" for me.

Also, why is it what when I type "Syst" and there is only one item in the auto-complete list it doesn't know how to
complete it?

I want to type:

Syst (auto) System (type) .o (auto) System.out (type) .p (auto) System.out.print (type) System.out.printl (auto)
System.out.println().

All I should have to type is:

Syst
.o
.p
l
Comment 1 Jiri Prox 2009-07-09 17:34:46 UTC
the System isn't completed since there are other classes in class path which starts with Syst and it would not be 
possible to use completion to finish them. The completion only inserts identifier automatically it there are no other
possible choices - e.g the full code completion (ctrl-alt-space or ctrl-space twice) returns single proposal.

The rest of this report is rather an enhancement than a defect
Comment 2 karmaflute 2009-07-09 18:47:36 UTC
You are correct in that this should have been set as ENHANCEMENT (my intent and mistake).

However, the first portion "System" still follows the same rules I mentioned in the initial report. When typing "Syst"
all case-sensitive results all start with "System" and, in my opinion, should automatically auto-complete to the closest
possible match if all matches contain the same first camel-case portion.

The one exception is that I also see "SYSTEM_EXCEPTION" which doesn't follow the case-sensitive rule. I thought the
auto-complete was case-sensitive but it seems that it is not. This enhancement would require it to be such.
Comment 3 karmaflute 2009-07-09 18:55:57 UTC
Or it could auto-complete to System (considering it also occurred the most often or set precedence to classes) and if
the user selects SYSTEM_EXCEPTION then replace the previous "System" portion with the full "SYSTEM_EXCEPTION".
Comment 4 Martin Balin 2016-07-07 07:27:45 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss