Organising Imports in NetBeans

一个人想着一个人 提交于 2019-12-11 12:43:31

问题


Netbeans is able to organise imports in a similar fashion to eclipse, but:

  • it seems unable to remove unused imports for classes that can't be resolved (and are no longer used)
  • I can only organise one class at a time - eclipse allows import organisation on packages and projects etc.

Is there some way that I can fix these problems?


回答1:


I recently upgraded to Netbeans 6.7 and "fix imports" works the same as it did in 6.5. I'm not sure why this does not remove unresolved imports. I have been unable to find a bug case about this.

As far a getting "Fix Imports" to work for multiple classes, that is planned for Netbeans 6.8.

Planning for NetBeans 6.8 under the Java section.

(E) Format code and fix imports on multiple files (code beautifier) (Max 10)



来源:https://stackoverflow.com/questions/1164578/organising-imports-in-netbeans

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!