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 65777 - [50cat] Productivity - Code Completion, SmartType (Ctrl+Alt) last used Class
Summary: [50cat] Productivity - Code Completion, SmartType (Ctrl+Alt) last used Class
Status: RESOLVED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Completion & Templates (show other bugs)
Version: 5.x
Hardware: PC Windows XP
: P2 blocker with 7 votes (vote)
Assignee: issues@editor
URL:
Keywords:
: 66517 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-10-03 23:10 UTC by vbrabant
Modified: 2007-12-08 16:04 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 vbrabant 2005-10-03 23:10:53 UTC
[ BUILD # : Beta ]
[ JDK VERSION : 1.5.0_05 ]

I am editing a class, called MyClass.
And I am filling the main method:

MyClass thiz = new M

and press Ctrl-Space.

Code Completion propose a lot of classes and interface, byt why it is not proposing at first class names I just typed.

I imagine a system where, when for each line code completion is building in his list, it matches with content of Ctrl-L Ctrl-K list, it would appears as first proposals.

So we will have the best of both world. Code completion that seems smarter because it first propose what we typed recently. More chance that we will use it in our code. No ?

Another Example:

Exception ex = new E
would propose Exception

Date today = new D
would propose Date

ArrayList = new A
would propose ArrayList.

..., ...
Comment 1 danielmd 2005-10-24 21:11:24 UTC
*** Issue 66517 has been marked as a duplicate of this issue. ***
Comment 2 danielmd 2005-10-24 21:14:21 UTC
Found this one latter, marked mine as duplicate of this one
broke all other requests to other RFE.

I would like to know if it's possible to have the last
class as the first option, this would improve my
productivity. Use case:

1) I'm typing WB - press control+space to get the
completion select WebBrowser.

2) I add the name of the instance webby 

3) = new and now i write WB again, but instead of
having the WebBrowser as my first option i have other
classes.

4) I would like to have the last used first in the
completion pop-up is this possible ?

My rational is that it will be possible to save a few seconds,
and also to confuse less the developer, simply code without
having to stop to read all the other classes.

It should be pretty simple to implement...

-DanielMD
Comment 3 gborkowski 2006-06-06 14:55:46 UTC
I would make it even one-more-step clever:
user writes:
Exception ex = new 
and press Ctrl-space, code completion shows classes and highlights Exception. 
So no need for typing "E" to get this result. Obviously typing "E" should give
the same result.
This is how that is implemented in VS 2005.
Comment 4 Jan Becicka 2007-12-08 16:04:54 UTC
Already fixed.