Code::Blocks Forums

User forums => General (but related to Code::Blocks) => Topic started by: hcye on November 21, 2005, 07:44:48 am

Title: DOS vs Unix file format?
Post by: hcye on November 21, 2005, 07:44:48 am
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!
Title: Re: DOS vs Unix file format?
Post by: Ceniza on November 21, 2005, 07:54:28 am
Settings -> Editor -> End-of-line mode
Title: Re: DOS vs Unix file format?
Post by: takeshimiya on November 25, 2005, 12:32:04 am
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.