Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Eclipse Adds and Removes Lines Between Methods
Eclipse Adds and Removes Lines Between Methods [message #170412] Tue, 12 September 2006 06:30 Go to next message
Eclipse UserFriend
Originally posted by: hal.thresholddigital.com

This may seem like a small thing, but it really bugs me. I'm using Eclipse
on Ubuntu Linux (yes, latest version, updated when updates available
through Ubuntu).

Before I write my comments and while I'm still testing a class, I always
leave one blank line between methods and two blank lines between blocks or
sections of methods. This helps me visually cue in to where I need to go
and with all the methods folded, it's quick for me to find what I need.
I've been doing this for a long time and I'm used to this pattern.

Eclipse will, at different times, add more blank lines between methods and
remove all blank lines between methods. Is there any way I can get Eclipse
to stop doing this?

Thanks!

Hal
Re: Eclipse Adds and Removes Lines Between Methods [message #170426 is a reply to message #170412] Tue, 12 September 2006 06:54 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: tom_eicher.ch.ibm.com

Hi Hal,

the formatter profile (Java > Code Style > Formatter preference page)
allows you to specify how many blank lines should be preserved by the
formatter.

HTH, tom

Hal Vaughan wrote:
> This may seem like a small thing, but it really bugs me. I'm using Eclipse
> on Ubuntu Linux (yes, latest version, updated when updates available
> through Ubuntu).
>
> Before I write my comments and while I'm still testing a class, I always
> leave one blank line between methods and two blank lines between blocks or
> sections of methods. This helps me visually cue in to where I need to go
> and with all the methods folded, it's quick for me to find what I need.
> I've been doing this for a long time and I'm used to this pattern.
>
> Eclipse will, at different times, add more blank lines between methods and
> remove all blank lines between methods. Is there any way I can get Eclipse
> to stop doing this?
>
> Thanks!
>
> Hal
Re: Eclipse Adds and Removes Lines Between Methods [message #170484 is a reply to message #170426] Tue, 12 September 2006 12:00 Go to previous message
Eclipse UserFriend
Originally posted by: hal.thresholddigital.com

Tom Eicher wrote:

> Hi Hal,
>
> the formatter profile (Java > Code Style > Formatter preference page)
> allows you to specify how many blank lines should be preserved by the
> formatter.
>
> HTH, tom

Found it.

Seems to help, but I'll see in the long run. I'm still getting used to code
folding that really works and just the idea of everything an IDE gives in
general.

Thanks!

Hal
Previous Topic:Problem updating my plugins
Next Topic:eclipse update custom handler
Goto Forum:
  


Current Time: Fri Mar 29 02:32:43 GMT 2024

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

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

Back to the top