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 trialUnsubscribed User
48,988 PointsIntellj 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
Unsubscribed User
48,988 Points5 Answers
Steve Hunter
57,712 PointsI'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.
Steve Hunter
57,712 PointsHi Jens,
Can you try adding the following import:
import java.util.Collections;
That should mean you can ditch the long-hand reference.
Steve.
Unsubscribed User
48,988 PointsYes i can but in the video craig is doing alt + t and import java... is at the top (not inline) automatically without typing.
Steve Hunter
57,712 PointsI 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.
Unsubscribed User
48,988 Pointssorry i mean alt + enter , checked preferences import, but no idea which point puts the import rules automatically at the top not inline.
Unsubscribed User
48,988 PointsYESS Steve you did it. Thank you very much.
Steve Hunter
57,712 PointsWhich setting was it?
Unsubscribed User
48,988 PointsJust first point "use single class import". Not "insert imports for inner classes", makes sense :-)
Steve Hunter
57,712 PointsSteve Hunter
57,712 PointsHi Jens,
Can you post a screenshot of what you mean?
Thanks,
Steve.