facebook

Eclipse 3.0 and line delimiters (unix vs. dos)

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #203453 Reply

    This is more of an Eclipse question… Is there a way to change the default line delimiters to Unix (LF) from DOS (CR/LF)? I’m using My Eclipse 3.7 on Windows. When I create a file in Eclipse, it defaults to CR/LF which tends to bug others on my team since they work in Unix.

    #203454 Reply

    Riyad Kalla
    Member

    Andrew,
    I believe that Eclipse will pickup and use the line delimiters in a file the way it finds them, so you should only need to do this change once per file:
    Source>Convert Line Delimiters To>UNIX

    Hope that helped.

    #225601 Reply

    Riyad,

    I am having problems with line delimiters too:

    Linux RedHat 8.0
    Eclipse 3.0.1 build 200409161125
    – Eclipse freshly installed for MyEclipse
    – Other plugin installed : Rational ClearCase SCM Adapter 6.0.25
    – How many plugins in the <eclipse>/plugins directory are like org.eclipse.pde.*
    * org.eclipse.pde_3.0.1
    * org.eclipse.pde.build_3.0.1
    * org.eclipse.pde.core_3.0.1
    * org.eclipse.pde.doc.user_3.0.0
    * org.eclipse.pde.junit.runtime_3.0.0
    * org.eclipse.pde.runtime_3.0.1
    * org.eclipse.pde.source_3.0.1
    * org.eclipse.pde.ui_3.0.1
    MyEclipse 3.8.4
    JDK version to run Eclipse 1.5.0_01
    JDK version to launch application server 1.4.2_07
    Application server: Tomcat 4.1.31
    No exceptions in the Eclipse log file

    My problem is that I set the Line Delimiter in MyEclipse->Editors->XML to Windows, and even WITH a Windows formatted .xml file (crlf’s at end of lines), any new lines that I add, end up with only lf’s in them. I checked by opening the .xml file outside of Eclipse with vi (after saving it with the ME XML Editor).

    Please advise?

    #225604 Reply

    Riyad Kalla
    Member

    Hendie,
    What happens when you convert the EOL delimiters as noted above? Then does it honor them?

    #225606 Reply

    No .. I assume you are referring to your answer to Andrew. No, that didn’t help either.

Viewing 5 posts - 1 through 5 (of 5 total)
Reply To: Eclipse 3.0 and line delimiters (unix vs. dos)

You must be logged in to post in the forum log in