Code Templates

The editor provides the ability to use code templates. A code template is a block of frequently used source code that can be inserted automatically by using a particular key sequence. A ‘|’ character is used in the template to indicate the required position of the cursor after the template has been expanded.

To view code templates

Code templates can either be expanded manually or automatically when the Space key is pressed.

To expand a code template manually
To expand the template automatically

Editing Macros

The editor has a number of built-in macros for carrying out common editing actions.

To declare a type
To cast to a type
To insert a qualifier

Tab Characters

The editor can either use tab characters or only use space characters to fill whitespace. The use of tabs or spaces when indenting can be specified in the editor’s language properties. The editor can also add or remove tabs characters in blocks of selected text.

To replace spaces with tab characters in selected text
To replace tab characters with spaces in selected text

Changing Case

The editor can change the case of selected areas of text.

To change case of selected text to uppercase
To change case of selected text to lowercase

Commenting

The editor can add or remove language specific comment characters to areas of text.

To comment out an area of selected text
To uncomment an area of selected text

Indentation

The editor can increase or decrease the indentation level of an area of selected text.

To increase indentation of selected text
To decrease indentation of selected text

Sorting

The editor can sort areas of selected text in ascending or descending ASCII order.

To sort selected lines into ascending order
To sort selected lines into descending order

Text Transposition

The editor can transpose word or line pairs.

To transpose the word at the current cursor position with the previous word
To transpose the current line with the previous line

Whitespace

To make whitespace visible