How to disable star import in Eclipse Juno

How to disable star import in Eclipse Juno? I want to import only the classes that I use, and the IDE imports the entire package if I import many classes that are in this package.

+6
source share
2 answers

Settings → Java → Code Style → Organize Import, and then change the amount needed for import. *.

If you change it to, say 2147483647 , you should be fine.

+11
source

I have only Indigo here, but I think this will help you:

Go to Settings → Java → Code Style → Organize Import.

There you will see the following fields:

 Number of imports needed for .* Number of static imports needed for .* 

You can change it according to your needs. The default value in Eclipse Indigo is 99, which is probably a good number to avoid importing.

+4
source

Source: https://habr.com/ru/post/927285/


All Articles