tags:

views:

103

answers:

2

Netbeans has this wiki entry on line endings: http://wiki.netbeans.org/FaqEditorEOLs

But it isn't very useful. It just says that you shouldn't develop on different OS and that's that...

In my situation however, I have no power over it. I'm on a windows machine and the PHP app I'm working on needs to end with the UNIX EOL.

There does not seem to be an option to set this for new files. Can anyone tell me where to set this?

+2  A: 

Have you considered managing the line endings at the version control level? Subversion, for example, lets you set an "eol-style" attribute with values "LF", "CR", "CRLF", and "native" (which translates the line endings stored in the repository to whatever is appropriate for the platform where the files are being checked out, and converts the other way when you check in.)

Jim Lewis
+1  A: 

Just saw that you can set this as a command-line startup flag: -J-Dline.separator=LF

I haven't tested this myself but I'm looking for ways to bake this into the configs somehow.

fentie