![]() ![]() ![]() |
You can customize the Studio editor to suit your preferences for writing and editing code. For example, you can use color coding to distinguish HTML and CFML code from text or scripting languages. The following features control the appearance of tags and text in the editor.
The following features and shortcuts can help you work more productively in ColdFusion Studio.
To control whether text wraps in the Edit window as you type and enter content, choose Options > Word Wrap or select the Word Wrap icon on the Editor toolbar on the left hand side of the Edit window.
You can toggle on and off a gutter on the left hand side of the Edit window. Use the gutter to:
See the Debugging and Troubleshooting chapter for information on using the interactive debugging tools.
You can control whether HTML and CFML tags appear in all upper or lower case. Use the Tags settings in the General pane of the Settings dialog box (F8).
To change the case of all tags in the current document, use Edit > Convert Tag Case command.
To specify that all colors be inserted as hexadecimal numbers in Studio, use the Tags settings in the General pane of the Settings dialog box (F8).
Studio displays tag codes, attributes, and values in different colors to help you distinguish tags from content. The document's file type and file extension determine which color scheme is employed.
To edit or change the color scheme for each file extension, use the Color Coding pane of the Settings dialog box (F8).
Indenting your code in the Studio editor greatly increases the readability of the code, even though it does not affect display in the browser (except for preformatted text).
Studio offers a way to automatically indent tags underneath each other. If you select the Auto Indent button in the Edit pane of the Settings dialog box (F8), when you hit the Enter key, Studio aligns your cursor with the indent level of the previous line.
Note that you can override this automatic matching of the previous line's indent level by placing the cursor manually or by using the arrow keys.
Studio offers keyboard shortcuts for many editing commands. You can also customize these shortcuts. Choose Options > Customize and open the Keyboard Shortcuts pane to see the current keyboard mappings and edit them to suit your preferences.
For more information on using keyboard shortcuts, see Chapter 3, ColdFusion Studio Quick Start.
Use the Code Templates feature as a shortcut to entering words that you type frequently. On the Code Templates pane of the Settings dialog box (F8), you can add and change these shortcuts, mapping abbreviations to words or phrases that you type often.
To use the Code Templates feature while editing text, enter the abbreviation, for example, dt4, and press CTRL-J. The abbreviation expands to the full phrase, for example, <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
.
You can also use the Snippets feature to store frequently-used code blocks, such as navigation bars, and complex table code that you use often, and so on. See Chapter 22, Maintaining Web Applications for information on creating templates.
![]() ![]() ![]() |
AllaireDoc@allaire.com
Copyright © 1998, Allaire Corporation. All rights reserved.