How to configure Java imported organizations in NetBeans

At present, NetBeans (I use version 7.3.1) has the built-in function of organizing java file import through the menu source » organize imports But I need to change the default import order (for example, when working in a shared environment, software developers must use the same import settings.)

Is there any way to do this?

Solution

Try:

>Click Tools → options. > Click the editor icon. > Click the Format tab. > Set the language to: Java. > Set the category to import. > Change the settings as needed. > Click OK or apply to save your changes

To organize imports on save:

>Click Tools → options. > Click the editor icon. > Click the save tab. > Check delete unused imports. > Check the tissue inlet. > Click OK or apply to save your changes

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>