Code::Blocks Forums
User forums => Using Code::Blocks => Topic started by: VicM on December 12, 2021, 06:50:05 pm
-
Hi,
I'm using C::B 20.03 on a 64-bit Win 7 box.
Every time I create a new project and open the source .cpp, it's populated with the "Hello World" source code. I would like every project source code to start with basic code, such as:
#include <iostream>
using namespace std;
int main()
{
return 0;
}
How can I achieve that?
Thanks,
Vic
-
You can use User templates or edit share\CodeBlocks\templates\console-main-cpp.cpp, but deleting one line from every new project does not look too hard, even if you create dozens of projects.
-
Thanks for your response Miguel.
While you have a point, it's just that my eyes glaze over when I see "Hello World". LOL
Vic