Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Java Old School

Intellj java import rules not inline.

Hello i always get the auto suggestions for import rules inline at the spot. Didn't found in preferences the right setting, to have them at the top. Can anyone help ?

Thanks

Hi Jens,

Can you post a screenshot of what you mean?

Thanks,

Steve.

5 Answers

I'm trying the image upload again - I always have problems with this which is frustrating. User error, I am sure but I've no idea what I'm doing wrong!!

https://drive.google.com/file/d/0ByAW6RAWFnHjTUtrc0MtUGRIVTg/view?usp=sharing

Try the link to compare settings! I can't embed the image in the post for some reason.

Hi Jens,

Can you try adding the following import:

import java.util.Collections;

That should mean you can ditch the long-hand reference.

Steve.

Yes i can but in the video craig is doing alt + t and import java... is at the top (not inline) automatically without typing.

I see ... you are organising imports and it's doing that inline rather than as an import. Right; I'm with you now. Let me see why that might be occurring.

Steve.

sorry i mean alt + enter , checked preferences import, but no idea which point puts the import rules automatically at the top not inline.

YESS Steve you did it. Thank you very much.

Which setting was it?

Just first point "use single class import". Not "insert imports for inner classes", makes sense :-)