User forums > Using Code::Blocks
Why does "Hello World" populate every new project cpp
(1/1)
VicM:
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
Miguel Gimenez:
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.
VicM:
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
Navigation
[0] Message Index
Go to full version