User forums > Help

Settings-editor-default code

(1/2) > >>

twilliam:
On the pull down menu Settings and then Editor and then "Default Code", would you explain how this is intended to be used please?

ollydbg:

--- Quote from: twilliam on March 06, 2012, 01:06:23 am ---I have created "default code" in Settings-Editor

--- End quote ---
What is the exact step you did? I can't understand your idea.

BTW: It looks like your need to use the project wizard to create a hello world project.

Jenna:

--- Quote from: twilliam on March 06, 2012, 01:06:23 am ---On the pull down menu Settings and then Editor and then "Default Code", would you explain how this is intended to be used please?

--- End quote ---
Did you read the note below the textbox ?

--- Quote from: Settings -> Editor... -> Default code ---The text you enter here, will appear on every new file (of the selected file-type) you create...
--- End quote ---

Jenna:

--- Quote from: jens on March 06, 2012, 10:13:02 am ---
--- Quote from: twilliam on March 06, 2012, 01:06:23 am ---On the pull down menu Settings and then Editor and then "Default Code", would you explain how this is intended to be used please?

--- End quote ---
Did you read the note below the textbox ?

--- Quote from: Settings -> Editor... -> Default code ---The text you enter here, will appear on every new file (of the selected file-type) you create...
--- End quote ---


--- End quote ---
By the way, you can use variables here, see: http://wiki.codeblocks.org/index.php?title=Variable_expansion

twilliam:
Yes I did "read the note below the textbox" but it's not working that way.  When I open a new project
all I get in the CPP is:
#include <iostream>

using namespace std;

int main()
{
    cout << "Hello world!" << endl;
    return 0;
}
which is NOT the text I put in Default Code, again I ask "what am i doing wrong?"



--- Quote from: jens on March 06, 2012, 10:23:06 am ---
--- Quote from: jens on March 06, 2012, 10:13:02 am ---
--- Quote from: twilliam on March 06, 2012, 01:06:23 am ---On the pull down menu Settings and then Editor and then "Default Code", would you explain how this is intended to be used please?

--- End quote ---
Did you read the note below the textbox ?

--- Quote from: Settings -> Editor... -> Default code ---The text you enter here, will appear on every new file (of the selected file-type) you create...
--- End quote ---


--- End quote ---
By the way, you can use variables here, see: http://wiki.codeblocks.org/index.php?title=Variable_expansion

--- End quote ---


Navigation

[0] Message Index

[#] Next page

Go to full version