Code editor
concept australia Updated Mar 12, 2026 1 min read monaco-editor.md
The code editor provides support to use programming language services in a text editor and is used in scripts.
The code editor has these features for the supported language services and Inline scripts.
- Syntax coloring, indentation, line numbers, and automatic creation of closing braces and quotes
- Auto-suggestions and auto-completions
[Omitted image "monaco-editor.png"] Alt text: Code editor in Workflow Studio
Editing tips
- To insert a fixed space anywhere in your code, press Tab.
- To indent a single line of code, click in the leading white space of the line and then press Tab.
- To indent one or more lines of code, select the code and then press Tab. To decrease the indentation, press Shift+Tab.
- To remove one tab from the start of a line of code, click in the line and press Shift+Tab.
- To declare variables, use the
varkeyword so that they remain within the proper JavaScript scope.
Parent Topic:Scripting
36 lines · 1.7 KB
--- title: Code editor description: The code editor provides support to use programming language services in a text editor and is used in scripts. locale: en-US canonical_url: https://www.servicenow.com/docs/r/australia/api-reference/scripts/monaco-editor.html release: australia product: Scripts classification: scripts topic_type: concept last_updated: "2026-03-12" reading_time_minutes: 1 breadcrumb: [Scripting, API implementation, API implementation and reference] --- # Code editor The code editor provides support to use programming language services in a text editor and is used in scripts. The code editor has these features for the supported language services and [Inline scripts](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/build-workflows/inline-scripts.md). - Syntax coloring, indentation, line numbers, and automatic creation of closing braces and quotes - Auto-suggestions and auto-completions \[Omitted image "monaco-editor.png"\] Alt text: Code editor in Workflow Studio ## Editing tips - To insert a fixed space anywhere in your code, press Tab. - To indent a single line of code, click in the leading white space of the line and then press Tab. - To indent one or more lines of code, select the code and then press Tab. To decrease the indentation, press Shift+Tab. - To remove one tab from the start of a line of code, click in the line and press Shift+Tab. - To declare variables, use the `var` keyword so that they remain within the proper JavaScript scope. **Parent Topic:**[Scripting](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/api-reference/scripts/c_Script.md)
| title | Code editor |
| description | The code editor provides support to use programming language services in a text editor and is used in scripts. |
| locale | en-US |
| canonical_url | https://www.servicenow.com/docs/r/australia/api-reference/scripts/monaco-editor.html |
| release | australia |
| product | Scripts |
| classification | scripts |
| topic_type | concept |
| last_updated | 2026-03-12 |
| reading_time_minutes | 1 |
| breadcrumb | ScriptingAPI implementationAPI implementation and reference |