In our project different developers use different editing tools. Some use vim, some use eclipse. The nature of the project requires some files with DOS line endings, some with Unix line endings. It sometimes happens that the line ending type gets mixed up in files. Vim users do not have this problem because each file contains a commented "modeline" that looks like
/* vi: set fileformat=dos: */
# vi: set fileformat=unix
near the EOF which tells vim to do the right thing.
Can eclipse be made to do the same on a per-file basis? I.e. can I tell eclipse within a file "This is a DOS file; save it with DOS line endings and convert if needed."?
Note: it is not an option to
- force vim on developers
- add file properties in eclipse that need to be maintained
- run external tools