Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: VicM on December 12, 2021, 06:50:05 pm

Title: Why does "Hello World" populate every new project cpp
Post 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
Title: Re: Why does "Hello World" populate every new project cpp
Post by: Miguel Gimenez on December 12, 2021, 07:16:44 pm
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.
Title: Re: Why does "Hello World" populate every new project cpp
Post by: VicM on December 13, 2021, 11:43:27 pm
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