Go back to Richel Bilderbeek's homepage.

Go back to Richel Bilderbeek's C++ page.

 

 

 

 

 

(C++) code template

 

Code templates are predefined pieces of code that can be inserted by a keyboard shortcut. Not all IDEs support code templates.

 

 

 

 

 

Example

 

In the C++ Builder 6.0 IDE, one can define a code template as follows:

 

for (int i=0; i!=|; ++i)
{

}

 

The bar ('|') denotes the cursor position after insertion.

 

This code can be inserted by using CTRL-J and the code template's shortcut, for example 'i'.

 

 

 

 

 

Go back to Richel Bilderbeek's C++ page.

Go back to Richel Bilderbeek's homepage.

 

Valid XHTML 1.0 Strict