1.10 Editor and Tools

CodeBlocks

[Contents] CodeBlocks Manual   [Search] Search

[Table of contents]

1.10 Editor and Tools

1.10.1 Default Code


The company’s Coding Rules require source files to have a standard design. CodeBlocks makes it possible to include a predefined content at the beginning of a file automatically when creating new C/C++ sources and headers. This predefined content is called default code. This setting can be selected under ’Stettings’ /’Editor’ Default Code. If you create a new file then a macro expansion of variables, e.g. defined via menu ’Settings’ /’Global variables’ , is performed. A new file can be created via the menu ’File’ /’New’ /’File’ .
Example
  /*************************************************************************
   *  Project: $(proejct)
   *  Function:
   *************************************************************************
   *  $Author: mario $
   *  $Name:  $
   *************************************************************************
   *
   *  Copyright 2007 by company name
   *
   ************************************************************************/


[Previous] 1.9  Including Assembler files
[Next] 1.10.2  Abbreviation

Created: 2010/25/05 11:52   Updated: 2010/25/05 11:52
Author: HighTec EDV-Systeme GmbH
Copyright © 2010 HighTec EDV-Systeme GmbH