This is the mail archive of the frysk@sources.redhat.com mailing list for the frysk project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Eclipse Formatting


On Fri, 2007-03-30 at 14:14 +0200, Mark Wielaard wrote:
> On Fri, 2007-03-30 at 08:11 -0400, Mike Cvet wrote:
> > 2007-03-26  Nurdin Premji  <npremji@redhat.com>
> >           * .settings: Changed formatter to only use tabs and set tab 
> > size to 8.
> > 
> > Why did we do this? Now half of the code in the files I'm working on is 
> > pushed past column 80, and the other half is normal. Are we switching 
> > all the Java code to *another* default formatting now?
> 
> Isn't that the default GNU formatting style?
> At least that is what I am using in emacs.
> (But I agree that lines should not be > 80 chars.)

Let me be a little bit more specific (since I am not actually using
eclipse and might misinterpret the actual change made to its formatter
*). I assume tabs != indentation, that indentation is 2 places and that
tabs should always be 8 everywhere.

Cheers,

Mark

*) For emacs I use the following hook in my .emacs:

(add-hook 'java-mode-hook
  (lambda ()
    (c-set-style "GNU")
    (c-set-offset 'inline-open 0)))

Attachment: signature.asc
Description: This is a digitally signed message part


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]