User forums > Using Code::Blocks
Cannot change default source code when opening new console application
sonicstrav:
Thanks for your help, I'll try this 8) :D
I am using Windows 7 ...sorry I wasn't specific enough
WantCbPersonalized:
Hello there,
I came to this topic because it is the most related with my problem. I also want to have a default code, so that i don't have to write every time #include... and using namespace std or ifstream fin(" .in/out"); .I don't know where I am doing wrong. I always start with ctrl shift n, a empty file, and not project like many others. When I start a new file nothing appears, neither the Hello world thing, and I want to appear my default code. I know about the default code in Setting Editor Default code, but none of what I've written in there seems to appear ANYWHERE. What should I do?
Thank you in advance.
Jenna:
--- Quote from: WantCbPersonalized on October 13, 2012, 10:32:38 pm ---What should I do?
--- End quote ---
Use "File -> New -> File... -> C/C++ source".
"CTRL+SHIFT+N" creates an empty file with no type.
The default code settings you have edited are either for C/C++ sources or headers.
WantCbPersonalized:
Thank you a lot! That worked! Sometimes CB is so tricky ;D
Navigation
[0] Message Index
[*] Previous page
Go to full version