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
Figure 1. Code editor
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.