Please use the Apache issue tracking system for new NetBeans issues ( !!
Bug 89036 - Enable automatic fix-imports
Enable automatic fix-imports
Status: NEW
Product: java
Classification: Unclassified
Component: Editor
All All
: P3 with 2 votes (vote)
Assigned To: Dusan Balek
: 188954 (view as bug list)
Depends on: 14202
  Show dependency treegraph
Reported: 2006-11-09 15:27 UTC by randahl
Modified: 2016-09-07 21:34 UTC (History)
2 users (show)

See Also:

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.

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo