User forums > Using Code::Blocks

Changing Default file extensions

(1/1)

psaikia:
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++

demone:
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.

psaikia:
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.

Navigation

[0] Message Index

Go to full version