|
Turn on ECMAScript 2021 \(ES12\) mode
|
Enables using the latest JavaScript features supported with ECMAScript 2021 \(ES12\) mode. This option is read only for scripts in applications with the JavaScript mode set to ECMAScript 2021 \(ES12\), which automatically use ECMAScript 2021 \(ES12\). For more information, see [Turn on ECMAScript 2021 \(ES12\) mode for a script](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/brazil/markdown/api-reference/scripts/set-es12-mode-scripts.md).
|
|
Toggle Syntax Editor
|
Turns off the syntax editor. Select the button again to enable the syntax editor.
|
|
Toggle Comment
|
Comments out the selected code. Select the button again to remove the comment and leave the code.
|
|
Format Code
|
Applies the proper indentation to the script.
|
|
Replace
|
Replaces the next occurrence of a text string in the script field.1. Select the icon, then enter the string to replace and press **Enter**. You can use regular expressions enclosed in slashes to define the string to replace. For example, the term /a\{3\}/ locates aaa.
2. Enter the replacement string and press **Enter**.
|
|
Replace All
|
Replaces all occurrences of a text string in the script field.1. Select the icon, then enter the string to replace and press **Enter**. You can use regular expressions enclosed in slashes to define the string to replace. For example, the term /a\{3\}/ locates aaa.
2. Enter the replacement string and press **Enter**.
|
|
Start Searching
|
Highlights all occurrences of a search term in the script field and locates the first occurrence. Select the icon, then enter the search term and press **Enter**. You can use [regular expressions](http://www.regular-expressions.info/reference.html) enclosed in slashes to define the search term. For example, the term /a\{3\}/ locates 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.
|
|
Toggle Full Screen
|
Expands the script field to use the full form view for easier editing. select the button again to return to standard form view. This feature is not available for Internet Explorer.
|
|
Help
|
Displays the keyboard shortcuts help screen.
|
|
Save
|
Saves changes without leaving the current view. Use this button in full screen mode to save without returning to standard form view.
|
|
Toggle Check Syntax
|
Checks the code for syntax errors. By default, the system automatically checks for syntax errors as you type in a script field. If an error or warning is found, the syntax editor displays a bullet beside the script line containing the error or warning. This check occurs on all script fields.
|
|
Open Script Debugger
|
Opens the Script Debugger window to debug the script. For more information, see [Script Debugger and Session Log](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/brazil/markdown/api-reference/scripts/script-debugger.md).
|
|
Toggle Script Tree
|
Opens the Script Tree with the available APIs.
|