---
sourceDocument: Xanadu API Reference
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/xanadu/api-reference

 Release :

    - xanadu

ft:locale :

    - en-US

ft:publication_title :

    - Xanadu API Reference

ft:clusterId :

    - crapiref

bundleId :

    - crapiref

workflow :

    - Creator


---

# Code editor

# Code editor {#ariaid-title1}

* Release version: Xanadu
* 
* Updated August 1, 2024
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 1 minute to read

The code editor provides support to use programming language services in a text editor and is used in scripts.{#monaco-editor__monaco-editor-short-desc}
The code editor has these features for the supported language services and [Inline scripts](https://www.servicenow.com/docs/access?context=inline-scripts&version=xanadu&pubname=xanadu-build-workflows&ft:locale=en-US).

* Syntax coloring, indentation, line numbers, and automatic creation of closing braces and quotes
* Auto-suggestions and auto-completions
{#monaco-editor__ul_qwf_hgt_3hb}  
Figure 1. Code editor

## Editing tips {#monaco-editor__section_dvc_rrm_whb}

* 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.
{#monaco-editor__ul_pm4_rrm_whb}

