User forums > General (but related to Code::Blocks)

DOS vs Unix file format?

(1/1)

hcye:
I am using C:B with Windows XP. When I open files created in C:B using gvim, I get the annoying ^M at the end of line. I guess this is because C:B saves files in DOS format (LF+CR) rather than Unix (LF). Is there a way to save files in unix format?

Thanks in advance!

Ceniza:
Settings -> Editor -> End-of-line mode

takeshimiya:
Indeed I have configured C::B to use always LF.
I also have configured TortoiseCVS/SVN to always use LF also.
So just I don't have problems when going to linux back and forth.

Navigation

[0] Message Index

Go to full version