Syntax editor keyboard shortcuts and actions
-
- UpdatedJan 30, 2025
- 4 minutes to read
- Yokohama
- API implementation
The syntax editor offers keyboard shortcuts and actions to assist in writing code.
Keyboard shortcut or action | Description | Example |
---|---|---|
Write code | ||
Scripting assistance Control+Spacebar |
Displays a list of valid elements at the insertion point such as:
Double-click an entry to add it to the script. Note: The elements are based on
server or client type of script. However, these elements are available based on
the UI type you select. For example, spUtil is available for Service Portal client
scripts and g_navigation is available for Desktop scripts. |
![]() |
Enter a period character after a valid class name. | Displays a list methods for the class. Double-click an entry to add it to the script. |
![]() |
Enter an open parenthesis character after a valid class, function, or method name. | Displays the expected parameters for the class or method. Enter the expected parameters as needed. |
![]() |
Toggle full screen mode Control+M |
Switches between displaying the form with the full screen and displaying it normally. | |
Format code
|
Formats the selected lines to improve readability. | ![]() ![]() |
Toggle comment
|
Adds or removes the comment characters // from the selected
lines. |
![]() ![]() |
Insert macro text
|
Inserts macro text at the current position. | ![]() ![]() |
Search | ||
Start search
|
Highlights all occurrences of a search term in the script field and locates the first occurrence. You can create regular expressions by enclosing the search terms between slash characters . For example, the search term /a{3}/ locates the string aaa . |
![]() ![]() |
Find next
|
Locates the next occurrence of the current search term in the script field. Use Start Searching to change the current search term. | ![]() |
Find previous
|
Locates the previous occurrence of the current search term in the script field. Use Start Searching to change the current search term. | ![]() |
Replace
|
Replaces the next occurrence of a text string in the script field. | ![]() ![]() ![]() |
Replace all
|
Replaces all occurrences of a text string in the script field. | ![]() ![]() |
Help | ||
Help
|
Displays the list of syntax editor keyboard shortcuts. | ![]() |
Show description
|
Displays API documentation for the scripting element at the cursor's current location. | ![]() |
Show macros
|
Displays the list of available syntax editor macros as text within the script field. | ![]() ![]() |