Code editor

concept australia Updated Mar 12, 2026 1 min read monaco-editor.md
Raw file servicenow.com

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 var keyword so that they remain within the proper JavaScript scope.

Parent Topic:Scripting

Search documentation
Search document titles and file paths on the australia branch