Monkey_D_Luffy_1999's blog

By Monkey_D_Luffy_1999, 10 years ago, In English

Hi everyone! Could you help me to find where can I make a default source and open it in Codeblocks? Thanks.

| Write comment?
»
10 years ago, hide # |
 
Vote: I like it +12 Vote: I do not like it

Go to Settings -> Editor -> Default Code and enter the source you want.

»
10 years ago, hide # |
 
Vote: I like it +6 Vote: I do not like it

It doesn't work for main.cpp file, when you're creating new project. Only for new file in the existing project.

»
10 years ago, hide # |
 
Vote: I like it +2 Vote: I do not like it

If you want to change default code of main.cpp when you create new project in CodeBlocks then here is my way (I tested on Windows):
- Go to Program Files/CodeBlocks/share/CodeBlocks/templates/wizard/console/cpp.
- You'll see file main.cpp, what you need is just edit content of this file to your default code.
Hope this will help you!