Using Auto Completion when Writing Code in the Script Editors
InstallShield 2022
If auto completion is enabled for the script editors in InstallShield, InstallShield displays a pop-up list of alphabetically ordered functions, keywords, constants, and string identifiers that begin with the letters that you are typing in the script editor. The pop-up list contains language-appropriate options, depending on which view you are using. For example, the script editor in the InstallScript view supports auto completion of InstallScript code. The VBScript script editor in the Custom Actions and Sequences view supports auto completion of VBScript.
In addition, if auto completion for local variables is enabled, the pop-up list in the script editor of the InstallScript view also contains local variables.
To learn how to enable auto completion, see Enabling or Disabling Auto Completion in the Script Editors.
To use auto completion for a function name, a keyword, a constant, or string identifier:
1. | Open the view that contains the appropriate script editor, and select the script that you want to edit. |
2. | Place the insertion point where you want to enter code in your script. |
3. | Do one of the following: |
• | Type the first characters of the function name, keyword, or other script word. |
Depending on the view that you are using and the language that is entered in the script editor in that view, InstallShield displays a pop-up list of alphabetically ordered functions, keywords, and other script words that begin with the letters that you are typing in the script editor. The first word that matches the characters that you typed is selected in the list. If no word matches the characters that you typed, no word in the list is selected.
• | If you are using the script editor in the InstallScript view and you want to use auto completion for a list of available string identifiers, enter the string constant operator (@). InstallShield displays a pop-up list of alphabetically ordered string identifiers. |
4. | If the selected word is not the one you want (or no word is selected), select another word in one of the following ways: |
• | To navigate through the list, use the pop-up list’s scroll bar; then, click the desired word to select it. |
• | To change the selection to the previous or next word, use the UP ARROW and DOWN ARROW keys. |
5. | To paste the selected word into your script, double-click the word, or press the ENTER key or the TAB key. |
To close the list without pasting the selected word, press ESC or click outside the pop-up list.
See Also
Viewing Function Call Tips for an InstallScript Function in the Script Editor