Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: psaikia on January 01, 2012, 09:41:59 pm

Title: Changing Default file extensions
Post by: psaikia on January 01, 2012, 09:41:59 pm
When I am opening an empty file from File--New--Empty File.

It always saves in .c and complies in only c . and not in .cpp or complies in C++.

I have to manually change the extension from .c to .cpp 

Is there any way to auto recognize and saves and complies in either c or c++
Title: Re: Changing Default file extensions
Post by: demone on January 01, 2012, 10:33:33 pm
I think that is faster creating a new .cpp file. You can name your file istantly as you wish, you have the right extension and you can optionally select a folder if you are working on a big project with many files.
Title: Re: Changing Default file extensions
Post by: psaikia on January 03, 2012, 09:45:40 am
How to create a.cpp file instantly . I am new to C and c++ , so while selecting by project it creates a folder and inside it creates  many files other than .cpp or .c file.