To further indent a
block of code, select it and then press Tab. To decrease the level of indentation for a selected code block,
press Shift+Tab. Alternatively, you can choose Edit ??? Indent Code or use the keyboard shortcut Ctrl+.
(Command+.) to indent a code block. Similarly, you choose Edit ??? Outdent Code or use the keyboard
shortcut Ctrl+, (Command+,) to outdent it.
Although the keyboard shortcuts for indenting and outdenting code may seem arbitrary at
first, they??™re actually easy to remember. The period and comma used in those shortcuts are on
the same key as the left angle bracket (>) and right angle bracket (<) respectively??”which indicates the
direction of the code shift.
As a further aid to help you find your way through a maze of code, Dreamweaver includes the Balance
Braces command. JavaScript is notorious for using parentheses, brackets, and curly braces to structure its
code??”and it??™s easy to lose sight of where one enclosing brace begins and its closing mate ends.
Dreamweaver highlights the content found within the closest pair of braces to the cursor when you choose
Edit ??? Balance Braces or use the keyboard shortcut Ctrl+' (Command+'). If you select the command again,
the selection expands to the set of surrounding braces.
Pages:
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407