Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » [SOLVED] Is there a way to stop the blank lines in imports?
[SOLVED] Is there a way to stop the blank lines in imports? [message #1859215] Sat, 20 May 2023 01:23 Go to next message
Ken Nischan is currently offline Ken NischanFriend
Messages: 7
Registered: December 2019
Junior Member
Hi. I find it extremely handy to be able to do CTRL-SHIFT-O and have it automatically bring in my imports. However I hate how it puts blank lines between different groups. I want to keep them all tight together. I'd like it even better if it automatically collapsed that group, but I'd be thrilled just to stop the blank lines.

Is that possible?

[Updated on: Tue, 23 May 2023 22:36]

Report message to a moderator

Re: Is there a way to stop the blank lines in imports? [message #1859218 is a reply to message #1859215] Sat, 20 May 2023 04:55 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33140
Registered: July 2009
Senior Member
You can change Window -> Preferences -> Java -> Code Style -> Formatter -> Edit... -> Blank Lines -> Blank lines within compilation unit -> Between import groups to 0.

Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Is there a way to stop the blank lines in imports? [message #1859257 is a reply to message #1859218] Tue, 23 May 2023 22:34 Go to previous message
Ken Nischan is currently offline Ken NischanFriend
Messages: 7
Registered: December 2019
Junior Member
Thanks!
Previous Topic:Hi.....How can I change color of menu context bar and high light !!!! when i was click mouse Right
Next Topic:Disappearing Buttons
Goto Forum:
  


Current Time: Wed Apr 24 19:45:20 GMT 2024

Powered by FUDForum. Page generated in 0.08998 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top