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.
When i FIX THE IMPORTS in project... the IDE must remove the unused imports... like eclipse. this is very usefull
It used to do that, I have no idea why it's not working any more.
This is an ancient issue, but if google led me here, then so might it for others: Somehow, my Netbeans 6.5 had a property set to disable auto-fix of unused imports. I couldn't find a property setting to set or unset this in the GUI. But, my config preferences contained the following: $ cat ~/.netbeans/6.5/config/Preferences/org/netbeans/modules/java/editor/org.netbeans.modules.java.editor.imports.JavaFixAllImports.properties #Tue Feb 24 14:22:47 PST 2009 removeUnusedImports=false By just commentting out this property (or perhaps deleting the file), my "fix imports" (aka ctrl+I) worked once again to removed unused imports. No idea what broke it in the first place (i.e., by setting this property), but now it's back to normal, business as usual. Hope it helps any other googlers out there who come across this. thx, -m