views:

495

answers:

2

I use Eclipse on Windows to edit files on a remotely mounted Linux SMB share.

Coupled with Samba's stubborn opposition to on-the-fly mapping, Eclipse's insistence on CR/LF creates a real headache with Perl scripts.

Any workarounds?

+4  A: 

In Eclipse, the end-of-line sequence setting can be found under Window > Preferences > General > Workspace > "New text file line delimiter".

mobrule
Thank you. Got that one. I also happened to find another setting - (Team > CVS > Files and Folders > Convert text files to use platform line ending) that might have been the root cause of my particular problem.
Alex R
A: 

I just stumbled upon an easy way of fixing these problems when you run into someone else's code that has them. In Eclipse just go to Source > Format. It'll immediately clear out all CR/LF combinations and replace all normal CRs with LFs so the code will display nicely without the extra blank lines in the code.

Eli