|
knet's haven » Writing » Articles » Delphi Hints And Tips |
|||||||||||||||||||||||||
|
Delphi Hints And Tips
Block IndentationTo 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 ShortcutTo move between the interface and implementation declarations of a procedure use [Ctrl][Shift][Up] or [Ctrl][Shift][Down]. Comment TemplateTo 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 HighlightingIf you want to alter the syntax highlighting select from the menus Tools | Options and change to the Colors tab. |