Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » UNIX Line Breaks on Windows Eclipse
UNIX Line Breaks on Windows Eclipse [message #131861] Tue, 06 January 2004 14:44 Go to next message
Eclipse UserFriend
Is there any way to set the line break character sequence used by
Eclipse (2.1.2)? Although not a problem for Java source files, it has
been an occasional issue with some of the other files I edit through
Eclipse.

Thanks.
Re: UNIX Line Breaks on Windows Eclipse [message #131875 is a reply to message #131861] Tue, 06 January 2004 17:39 Go to previous messageGo to next message
Eclipse UserFriend
On Tue, 06 Jan 2004 14:44:54 -0500, justin edelson
<justin@justinedelson.com> wrote:

> Is there any way to set the line break character sequence used by
> Eclipse (2.1.2)? Although not a problem for Java source files, it has
> been an occasional issue with some of the other files I edit through
> Eclipse.

Under Help you will find:
Converting line delimiters

The Java editor can handle Java files with heterogenous line delimiters.
However other external editors or tools may not be able to handle them
correctly.

If you want to change line delimiters used by your Java files:
Open a Java file in the Java editor
Select Source > Convert Line Delimiters To from the menu bar
Select the delimiters to which you want to convert the file to (one of
CRLF, LF, CR)

--
John Zoetebier
Web site: http://www.transparent.co.nz
Re: UNIX Line Breaks on Windows Eclipse [message #131922 is a reply to message #131861] Wed, 07 January 2004 06:17 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: bob.news.gmx.net

"justin edelson" <justin@justinedelson.com> schrieb im Newsbeitrag
news:btf35n$cl2$1@eclipse.org...
> Is there any way to set the line break character sequence used by
> Eclipse (2.1.2)? Although not a problem for Java source files, it has
> been an occasional issue with some of the other files I edit through
> Eclipse.

You can set those other files to binary mode if you use CVS. Then line
endings should not be touched while most other functionality (e.g. version
diffs) still work as expected.

Regards

robert
Re: UNIX Line Breaks on Windows Eclipse [message #132087 is a reply to message #131875] Wed, 07 January 2004 13:46 Go to previous messageGo to next message
Eclipse UserFriend
John Zoetebier wrote:
> On Tue, 06 Jan 2004 14:44:54 -0500, justin edelson
> <justin@justinedelson.com> wrote:
>
>> Is there any way to set the line break character sequence used by
>> Eclipse (2.1.2)? Although not a problem for Java source files, it has
>> been an occasional issue with some of the other files I edit through
>> Eclipse.
>
>
> Under Help you will find:
> Converting line delimiters
>
> The Java editor can handle Java files with heterogenous line delimiters.
> However other external editors or tools may not be able to handle them
> correctly.
>
> If you want to change line delimiters used by your Java files:
> Open a Java file in the Java editor
> Select Source > Convert Line Delimiters To from the menu bar
> Select the delimiters to which you want to convert the file to (one of
> CRLF, LF, CR)
>

Right, but it looks like CRLF is always the default. I'd rather just use
LF as the default. Is this possible?
Re: UNIX Line Breaks on Windows Eclipse [message #132285 is a reply to message #132087] Thu, 08 January 2004 05:12 Go to previous message
Eclipse UserFriend
Originally posted by: bob.news.gmx.net

"justin edelson" <justin@justinedelson.com> schrieb im Newsbeitrag
news:bthk4e$878$1@eclipse.org...
> John Zoetebier wrote:
> > On Tue, 06 Jan 2004 14:44:54 -0500, justin edelson
> > <justin@justinedelson.com> wrote:
> >
> >> Is there any way to set the line break character sequence used by
> >> Eclipse (2.1.2)? Although not a problem for Java source files, it has
> >> been an occasional issue with some of the other files I edit through
> >> Eclipse.
> >
> >
> > Under Help you will find:
> > Converting line delimiters
> >
> > The Java editor can handle Java files with heterogenous line
delimiters.
> > However other external editors or tools may not be able to handle them
> > correctly.
> >
> > If you want to change line delimiters used by your Java files:
> > Open a Java file in the Java editor
> > Select Source > Convert Line Delimiters To from the menu bar
> > Select the delimiters to which you want to convert the file to (one of
> > CRLF, LF, CR)
> >
>
> Right, but it looks like CRLF is always the default. I'd rather just use
> LF as the default. Is this possible?

Eclipse uses that of the current platform. You can try to set system
property "line.separator" during VM startup.

robert
Previous Topic:Enabling edit checking for CVS in 3.0M6
Next Topic:Formatter and organising imports
Goto Forum:
  


Current Time: Thu Jul 17 19:14:19 EDT 2025

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

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

Back to the top