A formatter profile allows you to configure nearly every possible "style"
choice you can imagine for formatting Java source files; new lines (where
and how many), indentions (spaces or tabs), number of indentions per certain
keywords (switch, case, identifiers, etc), brace placement, javadoc
formatting and anything else that floats your bloat.

You can do as little as just duplicating the built-in profiles and setting
the indention policy. I just adjusted other parts of the profile because the
default conventions have some weird treatment of switch blocks, at least
weird to me.

The profile is what's used when you format source code or use the correct
indention features, which just formats the indentions of the source
(converts tabs to spaces, etc).

-Nathan

> -----Original Message-----
> From: Geir Magnusson Jr [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, April 19, 2006 5:39 AM
> To: harmony-dev@incubator.apache.org
> Subject: Re: svn commit: r394890 - in
> /incubator/harmony/enhanced/classlib/trunk/modules: applet/make/common/
> archive/make/common/ auth/make/common/ awt/make/common/ beans/make/common/
> crypto/make/common/ jndi/make/common/ logging/make/common/ luni/make/commo
> 
> What does a "formatter profile" do? (I tend to use IDEA more than
> Eclipse - comes from being a Mac user for so many years, where Eclipse
> was utterly unusable until recently...)  I assume the same-ish as a code
> style in IDEA?
> 
> In IDEA, by default "use tabs" is unchecked in the global code style of
> the project code style with a tab size of 4. (IOW, tab key turns into 4
> chars...)
> 
> geir
> 
> 
> Nathan Beyer wrote:
> > For those who use Eclipse, this is fairly trivial to do with the Java
> > editor. I've created a Formatter Profile (and tried to attach it), that
> can
> > be imported and should setup this style of formatting.
> >
> > If you have the Web Tools, a similar format can be created for XML files
> as
> > well.
> >
> > -Nathan
> >
> >> -----Original Message-----
> >> From: Geir Magnusson Jr [mailto:[EMAIL PROTECTED]
> >> Sent: Tuesday, April 18, 2006 7:01 AM
> >> To: harmony-dev@incubator.apache.org
> >> Subject: Re: svn commit: r394890 - in
> >> /incubator/harmony/enhanced/classlib/trunk/modules: applet/make/common/
> >> archive/make/common/ auth/make/common/ awt/make/common/
> beans/make/common/
> >> crypto/make/common/ jndi/make/common/ logging/make/common/
> luni/make/commo
> >>
> >>
> >>
> >> Richard Liang wrote:
> >>> Geir Magnusson Jr wrote:
> >>>> Wait - no tabs!  no tabs!  PLEASE!
> >>> +1. But are there any way to release our pain from TABs? :-)
> >> Yes - most editors will convert tabs to spaces.  I suppose if we agree
> >> on a "no tabs" rule, and find files w/ tabs, lets do a conversion, and
> >> check it in w/o any other mods, with the commit log entry of "changing
> >> tabs to spaces" or such....
> >>
> >> geir
> >>
> >>
> >> -----------------------------------------------------------------------
> -
> >>
> >> ---------------------------------------------------------------------
> >> Terms of use : http://incubator.apache.org/harmony/mailing.html
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> ---------------------------------------------------------------------
> Terms of use : http://incubator.apache.org/harmony/mailing.html
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
Terms of use : http://incubator.apache.org/harmony/mailing.html
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to