Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Code formatter
Code formatter [message #300281] Tue, 07 March 2006 00:19 Go to next message
Eclipse UserFriend
Originally posted by: shyam_zx.yahoo.com

Hello,
Is there an option in the code formatter to Convert Line
Delimiters To LF format?

Thanks
Shyam
Re: Code formatter [message #300285 is a reply to message #300281] Tue, 07 March 2006 01:55 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: automatic.javalobby.org

Not that I know of. However, there's Preferences -> General -> Editors -> New text file line delimiter which you can change the value of. It may be inherited by the code formatter, or not. My guess is that it's more likely to use the OS default than that property. Sounds like a reasonable enhancement request if no-one else posts a workaround to this (it may be in some other menu I'm not aware of).

Alex.
Re: Code formatter [message #300301 is a reply to message #300281] Tue, 07 March 2006 11:27 Go to previous messageGo to next message
Tom Hofmann is currently offline Tom HofmannFriend
Messages: 770
Registered: July 2009
Senior Member
Shyam wrote:
> Hello,
> Is there an option in the code formatter to Convert Line
> Delimiters To LF format?

There is also the File > Convert Line Delimiters menu which you can use
to convert the delimiters on a file or an entire folder hierarchy. You
may have to enable that menu in the Window menu: 'Customize Perspective
> Commands': Enabled the "Convert Line Delimiters" group.

-tom
Re: Code formatter [message #300336 is a reply to message #300301] Tue, 07 March 2006 19:48 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: shyam_zx.yahoo.com

I tried this out it does partially solve the problem. I am looking for a
way to change the default from windows to unix.

I am using the EMF code generator which uses the formatter for
formatting the generated code. I would like the generated code to be
formatted to UNIX type though I am running eclipse on windows. Is there
a property that I can change to set the default to unix?
Tom Eicher wrote:
> Shyam wrote:
>
>> Hello,
>> Is there an option in the code formatter to Convert Line
>> Delimiters To LF format?
>
>
> There is also the File > Convert Line Delimiters menu which you can use
> to convert the delimiters on a file or an entire folder hierarchy. You
> may have to enable that menu in the Window menu: 'Customize Perspective
> > Commands': Enabled the "Convert Line Delimiters" group.
>
> -tom
Re: Code formatter [message #300381 is a reply to message #300336] Wed, 08 March 2006 09:32 Go to previous message
Tom Hofmann is currently offline Tom HofmannFriend
Messages: 770
Registered: July 2009
Senior Member
Shyam wrote:
> I tried this out it does partially solve the problem. I am looking for a
> way to change the default from windows to unix.

See the General > Workspace preference page for the default encoding
used. You can also set the encoding per project, folder, and even per file.

-tom
Previous Topic:perspective,view problem
Next Topic:Internal Web Browser
Goto Forum:
  


Current Time: Sat Aug 24 00:40:45 GMT 2024

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

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

Back to the top