facebook

Empty Lines Added Automagically?

  1. MyEclipse IDE
  2.  > 
  3. Installation, Configuration & Updates
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #254254 Reply

    dmacdaddy
    Member

    I searched the site for this, but didn’t find an answer to my issue which is: when I open Java files up in MyEclipse, the content of the files is double spaced – that is, there is a blank line between all lines. The files I’m opening do not have the extra spacing when opened in a text editor directly from the file system. But, when I open them up in MyEclipse, they are double spaced. This is prior to running “Format” from inside MyEclipse. Any ideas how I can make this “automatic formatting” stop happening?

    #254322 Reply

    Riyad Kalla
    Member

    … hmm never heard of this before. i would point out that the Java editor is provided by the base Eclipse JDT. Try and see if any settings under Preferences > Java > Editor help.

    Does this happen even if you reformat the file, close it and reopen it?

    #254327 Reply

    Robert Varga
    Participant

    Could you check with a hex-editor what file-end characters are there at the end of the lines (I guess it would be CRCRLF – 0D 0D 0A ).

    If it is, then convert all your files to your own platform’s line-end convention (see the FixCRLF Ant task for that).

    BR,

    Robert Varga

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: Empty Lines Added Automagically?

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