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 89036 - Enable automatic fix-imports
Summary: Enable automatic fix-imports
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Editor (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker with 2 votes (vote)
Assignee: Dusan Balek
: 188954 (view as bug list)
Depends on: 14202
  Show dependency tree
Reported: 2006-11-09 15:27 UTC by randahl
Modified: 2016-09-07 21:34 UTC (History)
2 users (show)

See Also:
Exception Reporter:

Dialog where "fix imports" checkbox should be (18.40 KB, image/png)
2016-09-07 21:33 UTC, Manius

Note You need to log in before you can comment on or make changes to this bug.
Description randahl 2006-11-09 15:27:49 UTC
Half of the times when I build and get a compilation error it can be fixed by
clicking Alt+Shift+F to invoke the "Fix imports" tool. Fixing imports takes less
than a second whereas building takes much longer. Consequently my daily work
looks like this:

1. start the build process and then wait 20 seconds and get a trivial
compilation error 
2. fix it in 1 second using "Fix imports"
3. start the build process and wait an additional 20 seconds

This allows me to build the application in 41 seconds. Now if NetBeans invoked
"Fix imports" automatically I would always spend an additional second for fixing
imports but I would also quite often safe 20 seconds for rebuilding. That is my

Comment 1 Peter Pis 2007-08-27 14:47:45 UTC
Reassigning to "java".
Comment 2 markiewb 2012-05-18 18:14:56 UTC
Could be an action for "save actions". Linked 14202 to this.
Comment 3 markiewb 2013-12-18 22:21:32 UTC
*** Bug 188954 has been marked as a duplicate of this bug. ***
Comment 4 Manius 2016-09-07 21:33:11 UTC
Created attachment 161955 [details]
Dialog where "fix imports" checkbox should be
Comment 5 Manius 2016-09-07 21:34:51 UTC
(In reply to markiewb from comment #2)
> Could be an action for "save actions". Linked 14202 to this.

Exactly what I came here to suggest.. see attachment above.