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 248809 - Improve code completion of "import" statements
Summary: Improve code completion of "import" statements
Alias: None
Product: editor
Classification: Unclassified
Component: Completion & Templates (show other bugs)
Version: 8.0.1
Hardware: PC Linux
: P3 normal (vote)
Assignee: Dusan Balek
Depends on:
Reported: 2014-11-21 15:26 UTC by klr8
Modified: 2017-06-06 10:36 UTC (History)
0 users

See Also:
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description klr8 2014-11-21 15:26:28 UTC
The code completion of "import" statements leaves a bit to be desired. Currently (NetBeans IDE 8.0.1 (Build 201408251540)) you have to 'step' through the entire package hierarchy to get to the class you want to import.

I would like to be able to do the following:

Suppose you have a class "my.package.SomeClass".
Type "import So<ctrl-space>" or "import static So<ctrl-space>" and the editor should suggest "my.package.SomeClass" (<ctrl-space> is of course whatever code completion shortcut you've got configured).
After selecting the suggestion, in case of a static import, it should append a further "." and suggest the methods that can be statically imported from the selected type. In case of a normal import, the caret is placed at the end of the line and you can type a ";" to end the line.
Comment 1 Martin Balin 2016-07-07 07:30:40 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
Comment 2 klr8 2016-11-14 12:06:43 UTC
Tested with NetBeans IDE 8.2 (Build 201609300101): the code completion for import statements is still exactly the same as in 8.1, so this enchancement request is still relevant.
Comment 3 Dusan Balek 2016-11-14 17:18:07 UTC
Fixed in jet-main.
Comment 4 Quality Engineering 2016-11-16 02:51:34 UTC
Integrated into 'main-silver', will be available in build *201611160001* on (upload may still be in progress)

User: Dusan Balek <>
Log: Issue #248809 - Improve code completion of "import" statements - fixed.
Comment 5 klr8 2017-06-06 10:36:36 UTC
I retried with NetBeans IDE 8.2 (Build 201705191307) but I still don't see any of the features described by this ticket being available.