Author Topic: Why does "Hello World" populate every new project cpp  (Read 4127 times)

Offline VicM

  • Single posting newcomer
  • *
  • Posts: 6
Why does "Hello World" populate every new project cpp
« 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

Offline Miguel Gimenez

  • Developer
  • Lives here!
  • *****
  • Posts: 1209
Re: Why does "Hello World" populate every new project cpp
« Reply #1 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.
« Last Edit: December 12, 2021, 09:41:58 pm by Miguel Gimenez »

Offline VicM

  • Single posting newcomer
  • *
  • Posts: 6
Re: Why does "Hello World" populate every new project cpp
« Reply #2 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