Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: Alterah on October 01, 2009, 03:01:56 am

Title: Code::Blocks Settings
Post by: Alterah on October 01, 2009, 03:01:56 am
Hello, I recently downloaded Code::Blocks. So far I am liking it, but I did have a couple small questions. I was using Dev-Cpp. I am wondering if there is some way that when I open Code::Blocks it will default the highlighting mode to C/C++. That way I don't have to go to Edit > Highlight Mode > C/C++. Also, when I save files...I am not seeing an option to save them at .cpp It will simply save it as .c (which I assume is the file type for C files). Is there a setting/option to change that? Thanks in advance! 
Title: Re: Code::Blocks Settings
Post by: mariocup on October 01, 2009, 07:26:26 am
Hi Alterah,

if you save a file as <filename>.cpp and add it to a Code::Blocks project, then it will be detected as C++ file. If you select your file in the project explorer and use the context menu properties you will see in the tab advanced that the compiler variable is set to CPP, which means it is a C++ file.