newline character in windows/unix [message #283804] |
Tue, 12 April 2005 13:22 |
Eclipse User |
|
|
|
Originally posted by: mwang.zheng.gmail.com
Hi,
I created a text file under eclipse/windows.
If I upload the file to Unix. Under vi, I can see ^M at the end of every
line.
I understand Windows has an extra ^M as newline char.
Is there a way to configure Eclipse to use Unix newline character instead
of Windows newline character? Thanks.
mike
|
|
|
|
Re: newline character in windows/unix [message #284150 is a reply to message #284127] |
Tue, 19 April 2005 06:55 |
Eclipse User |
|
|
|
Originally posted by: ""t.s.maedert.s.maeder\"..hispeedhispeed.chch"
How about setting the line.delimiter system property when starting up
Eclipse?
Thomas
Ross Davis wrote:
> On Tue, 12 Apr 2005 13:22:04 +0000 (UTC), mike <mwang.zheng@gmail.com>
> wrote:
>
>> Hi,
>>
>> I created a text file under eclipse/windows.
>>
>> If I upload the file to Unix. Under vi, I can see ^M at the end of
>> every line.
>>
>> I understand Windows has an extra ^M as newline char.
>>
>> Is there a way to configure Eclipse to use Unix newline character
>> instead of Windows newline character? Thanks.
>>
>> mike
>>
>
> You can go to "Source->Convert Line Delimiters To" if you want to
> convert one file at a time. Unfortunately, I do not know of a way to
> set a default line delimiter. If anyone knows of a way, I'd love to
> hear it because \r is slowly eating my soul away.
>
> ross
|
|
|
Re: newline character in windows/unix [message #284217 is a reply to message #283804] |
Tue, 19 April 2005 20:25 |
Eclipse User |
|
|
|
Originally posted by: neil.neil.swingler.name
mike wrote:
> Hi,
>
> I created a text file under eclipse/windows.
>
> If I upload the file to Unix. Under vi, I can see ^M at the end of every
> line.
>
> I understand Windows has an extra ^M as newline char.
>
> Is there a way to configure Eclipse to use Unix newline character
> instead of Windows newline character? Thanks.
>
Vote for:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=3970
4th most voted for bugzilla entry
--
Neil Swingler
|
|
|
Powered by
FUDForum. Page generated in 0.03726 seconds