Amethyst Help

Back to -Products -Amethyst IDE -Amethyst Help

IntelliSense Options - ActionScript and MXML

IntelliSense Options in Amethyst Professional

The Amethyst IntelliSense system provides a variety of code completion options. To access Formatting Options in Amethyst, select: Tools->Options->Text Editor->ActionScript->IntelliSense and Tools->Options->Text Editor->MXML->IntelliSense

ActionScript IntelliSense

These are the available options:

- Show completion list after a character is typed

When true, a code completion list automatically appears showing relevant items such as class or method names as characters are typed. The selected item in the completion list will be the nearest match to the characters entered and are case sensitive. For example, if you enter ‘But’ the completion list may highlight ‘Button’ followed by other possible matches.

- Show keywords in completion list

When true, code completion lists include keywords such as ‘private’ and ‘function’.

- Enter key is a commit character

When true, the Enter key selects and inserts into your code the currently selected item in the completion list.

- Space is a commit character

When true, the Space bar selects and inserts into your code the currently selected item in the completion list.

- Show snippets in completion list

When true, ActionScript code snippets are included in the completion list.

- Expand snippets by tab character

When true, code snippet shortcuts are expanded into the complete code snippet when the TAB key is pressed. To view available snippet shortcuts, right-click in the editor and select Insert Snippet.

- Generate import statements

When true, if a class which has been selected from the completion requires an ‘import’ statement, this will be inserted automatically. For example, if you select ‘ArrayCollection’ from the completion list, this statement will be inserted:

import mx.collections.ArrayCollection;

- Committed by typing the following characters

If true, the characters listed in the text box will trigger completion when the completion list is displayed. The trigger character will be appended to the completed item. For example, let’s assume that both ‘(‘ and ‘;’ are used as completion characters. You enter ‘my’ and mymethod’ is now highlighted in the completion list. When you enter ‘(‘, the following will be inserted into the code editor:

mymethod(

Now you enter ‘myv’ and myvariable is highlighted in the completion list. When you enter ‘;‘, the following will be inserted into the code editor:

myvariable;

NOTE: If you do not wish to use the default characters, you may edit the completion characters in this dialog.

MXML IntelliSense

Note that, in MXML files, the IntelliSense is context sensitive to the code area. In an MXML area, MXML IntelliSense is used. In an embedded ActionScript (CDATA) area, ActionScript IntelliSense is used.

These are the available options:

- Show completion list after a character is typed

When true, a code completion list automatically appears showing relevant items such as class or method names as characters are typed. The selected item in the completion list will be the nearest match to the characters entered and are case sensitive. For example, if you enter ‘But’ the completion list may highlight ‘Button’ followed by other possible matches.

- Show tags after ’<’ is typed

When true, if you enter ‘<’ MXML tags are shown in the completion list. You may carry on entering characters to make a better match (the ‘mx:’ prefix is optional at this point). For example, if you enter <But, the completion list may highlight: <mx:Button>. In Flex 4 applications, in order to resolve the namespace of Spark controls (many of which have the same class names as those in the ‘mx’ namespace), you must enter the s: prefix. For example, <s:But will select <s:Button>.

To close the tag, you may either enter the ‘/>’ characters or ‘>’. Entering ‘/>’ closes it as a single tag. Entering ‘>’ closes it as a double tag. For example, if you are entering a Button tag, this closing tag will be appended:

- Enter key is a commit character

When true, the Enter key selects and inserts into your code the currently selected item in the completion list.

- Show snippets in completion list

When true, MXML code snippets are included in the completion list.

- Expand snippets by tab character

When true, MXML code snippet shortcuts are expanded into the complete code snippet when the TAB key is pressed. To view available snippet shortcuts, right-click in the editor and select Insert Snippet.

Bookmark and Share   Keywords:  Amethyst  help
© SapphireSteel Software 2014