
190 Use the Code Editor
Show line numbers
To more easily locate lines of code, you can display line numbers in the editor.
■ With the CodeEditor.mxml file open in the editor, right-click (Control-click on
Macintosh) in the left margin of the editor and select Show Line Numbers, as shown here:
Line numbers are displayed in the editor.
Add a code comment
You can quickly add a comment or convert a block of your code into a comment, using a code
editor keyboard shortcut.
1. In the code editor, position the cursor at a blank line and then press Control+Shift+C
(Command+Shift+C on Macintosh). A comment tag is added to the document, as shown
here:
<!-- -->
2.
Enter a comment between the opening and closing brackets, for example:
<!-- This is a code comment in MXML -->
In ActionScript, comment blocks are formatted using the standard ActionScript comment
format, as shown here:
/* This is a code comment in ActionScript */
3.
To convert an existing block of code into a comment, select it and then press
Control+Shift+C (Command+Shift+C on Macintosh). The entire selection is formatted as
a comment.
Commenti su questo manuale