Skip to main content

Interface: EditorConfig

_internal.EditorConfig

Hierarchy

Properties

closeBrackets

closeBrackets: boolean

Use auto-complete to close brackets and quotes.

Default

true

Defined in

models.ts:757


editor

editor: undefined | "monaco" | "codemirror" | "codejar"

Selects the code editor to use.

If undefined (the default), Monaco editor is used on desktop, CodeMirror is used on mobile and CodeJar is used in codeblocks, in lite mode and in readonly playgrounds.

Default

undefined

Defined in

models.ts:691


editorMode

editorMode: undefined | "vim" | "emacs"

Sets editor mode.

Defined in

models.ts:768


editorTheme

editorTheme: undefined | string | EditorTheme[]

Sets the code editor themes.

See docs for editor themes for details.

Example

"vs"

Example

"monaco:twilight, codemirror:one-dark"

Example

["vs@light"]

Example

["vs@light", "vs-dark@dark"]

Example

["monaco:vs@light", "codemirror:github-light@light", "dracula@dark"]

Defined in

models.ts:710


emmet

emmet: boolean

Enables Emmet.

Default

true

Defined in

models.ts:763


enableAI

enableAI: boolean

If true, AI code assistant is enabled.

Default

false

Defined in

models.ts:774


fontFamily

fontFamily: undefined | string

Sets the code editor font family.

Defined in

models.ts:715


fontSize

fontSize: undefined | number

Sets the code editor font size.

If undefined (the default), the font size is set to 14 for the full app and 12 for embeds.

Default

undefined

Defined in

models.ts:723


lineNumbers

lineNumbers: boolean

Show line numbers in code editor.

Default

true

Defined in

models.ts:745


tabSize

tabSize: number

The number of spaces per indentation-level.

Also used in code formatting.

Default

2

Defined in

models.ts:739


theme

theme: Theme

Sets the app theme to light/dark mode.

Default

"dark"

Defined in

models.ts:697


useTabs

useTabs: boolean

If true, lines are indented with tabs instead of spaces.

Also used in code formatting.

Default

false

Defined in

models.ts:731


wordWrap

wordWrap: boolean

Enables word-wrap for long lines.

Default

false

Defined in

models.ts:751