Delphi Hints And Tips

Author: David Taylor
Contact: knet@mailandnews.com
Version: 1322
Date: 2004-03-03

Block Indentation

To indent a section of code, first highlight the code, then press [Ctrl][Shift]I. To un-indent the code, use [Ctrl][Shift]U instead.

Interface/Implementation Shortcut

To move between the interface and implementation declarations of a procedure use [Ctrl][Shift][Up] or [Ctrl][Shift][Down].

Comment Template

To create a code template for a comment block, first create a blank comment block, then highlight it, then copy it to the clipboard. Next, select from the menus Tools | Environment Options | Code Insight, and click on Add in the Code Templates group. Call the template "Comments" and paste the previously copied block.

Now, whenever you require a blank comment block, simply press [Ctrl]J, then select your comment block code template.

Syntax Highlighting

If you want to alter the syntax highlighting select from the menus Tools | Options and change to the Colors tab.