Code::Blocks Forums

User forums => General (but related to Code::Blocks) => Topic started by: h3x on December 30, 2012, 11:42:15 pm

Title: Any way to do the following?
Post by: h3x on December 30, 2012, 11:42:15 pm
Either to make a default code option under settings work for empty files or somehow make it so that when i press ctrl + shift + n a c++ source file is created instead of an empty file.

Bascially what i need is for a file to be created with default source code when i press ctrl + shift + n.
Title: Re: Any way to do the following?
Post by: ptDev on December 31, 2012, 08:52:18 am
Go to Settings > Editor > Default Code. There you can input all the code that you want as part of every new source file you create.

Also, look into the code snippets plugin, it can also prove helpful to you.