OptionalacceptOptionalacceptAccept suggestions on ENTER. Defaults to 'on'.
OptionalaccessibilityAn URL to open when Ctrl+H (Windows and Linux) or Cmd+H (OSX) is pressed in the accessibility help dialog in the editor.
Defaults to "https://go.microsoft.com/fwlink/?linkid=852450"
OptionalaccessibilityControls the number of lines in the editor that can be read out by a screen reader
OptionalaccessibilityConfigure the editor's accessibility support. Defaults to 'auto'. It is best to leave this to 'auto'.
OptionalariaContainer element to use for ARIA messages. Defaults to document.body.
OptionalariaThe aria label for the editor's textarea (when it is focused).
OptionalariaWhether the aria-required attribute should be set on the editors textarea.
OptionalautoOptions for auto closing brackets. Defaults to language defined behavior.
OptionalautoOptions for auto closing comments. Defaults to language defined behavior.
OptionalautoOptions for pressing backspace near quotes or bracket pairs.
OptionalautoOptions for typing over closing quotes or brackets.
OptionalautoOptions for auto closing quotes. Defaults to language defined behavior.
OptionalautoIf enabled, will automatically change to high contrast theme if the OS is using a high contrast theme. Defaults to true.
OptionalautoControls whether the editor should automatically adjust the indentation when users type, paste, move or indent lines. Defaults to advanced.
OptionalautomaticEnable that the editor will install a ResizeObserver to check if its container dom node size has changed. Defaults to false.
OptionalautoWhether an editor should be auto resized on a content change.
remove when https://github.com/Microsoft/monaco-editor/issues/103 is resolved
OptionalautoOptions for auto surrounding. Defaults to always allowing auto surrounding.
OptionalbracketConfigures bracket pair colorization (disabled by default).
OptionalcodeTimeout for running code actions on save.
OptionalcodeShow code lens Defaults to true.
OptionalcodeCode lens font family. Defaults to editor font family.
OptionalcodeCode lens font size. Default to 90% of the editor font size
OptionalcolorEnable inline color decorators and color picker rendering.
OptionalcolorControls what is the condition to spawn a color picker from a color dectorator
OptionalcolorControls the max number of color decorators that can be rendered in an editor at once.
OptionalcolumnEnable that the selection with the mouse and keys is doing column selection. Defaults to false.
OptionalcommentsControl the behaviour of comments in the editor.
OptionalcontextmenuEnable custom contextmenu. Defaults to true.
OptionalcopySyntax highlighting is copied.
OptionalcursorControl the cursor animation style, possible values are 'blink', 'smooth', 'phase', 'expand' and 'solid'. Defaults to 'blink'.
OptionalcursorEnable smooth caret animation. Defaults to 'off'.
OptionalcursorControl the cursor style in insert mode. Defaults to 'line'.
OptionalcursorControls the minimal number of visible leading and trailing lines surrounding the cursor. Defaults to 0.
OptionalcursorControls when cursorSurroundingLines should be enforced
Defaults to default, cursorSurroundingLines is not enforced when cursor position is changed
by mouse.
OptionalcursorControl the width of the cursor when cursorStyle is set to 'line'
OptionaldefaultControls whether to use default color decorations or not using the default document color provider
OptionaldefinitionControls whether the definition link opens element in the peek widget. Defaults to false.
OptionaldetectControls whether tabSize and insertSpaces will be automatically detected when a file is opened based on the file contents.
Defaults to true.
OptionaldimensionThe initial editor dimension (to avoid measuring the container).
OptionaldisableDisable the use of transform: translate3d(0px, 0px, 0px) for the editor margin and lines layers.
The usage of transform: translate3d(0px, 0px, 0px) acts as a hint for browsers to create an extra layer.
Defaults to false.
OptionaldisableDisable the optimizations for monospace fonts. Defaults to false.
OptionaldomShould the textarea used for input use the DOM readonly attribute.
Defaults to false.
OptionaldragControls if the editor should allow to move selections via drag and drop. Defaults to false.
OptionaldropControls dropping into the editor from an external source.
When enabled, this shows a preview of the drop location and triggers an onDropIntoEditor event.
OptionalemptyCopying without a selection copies the current line.
OptionalexperimentalSets whether the new experimental edit context should be used instead of the text area.
OptionalexperimentalEnable experimental rendering using WebGPU. Defaults to 'off'.
OptionalexperimentalEnable experimental whitespace rendering. Defaults to 'svg'.
OptionalextraClass name to be added to the editor.
OptionalfastFastScrolling mulitplier speed when pressing Alt
Defaults to 5.
OptionalfindControl the behavior of the find widget.
OptionalfixedDisplay overflow widgets as fixed.
Defaults to false.
OptionalfoldingEnable code folding. Defaults to true.
OptionalfoldingEnable highlight for folded regions. Defaults to true.
OptionalfoldingAuto fold imports folding regions. Defaults to true.
OptionalfoldingMaximum number of foldable regions. Defaults to 5000.
OptionalfoldingSelects the folding strategy. 'auto' uses the strategies contributed for the current document, 'indentation' uses the indentation based folding strategy. Defaults to 'auto'.
OptionalfontThe font family
OptionalfontEnable font ligatures. Defaults to false.
OptionalfontThe font size
OptionalfontEnable font variations. Defaults to false.
OptionalfontThe font weight
OptionalformatEnable format on paste. Defaults to false.
OptionalformatEnable format on type. Defaults to false.
OptionalglyphEnable the rendering of the glyph margin. Defaults to true in vscode and to false in monaco-editor.
OptionalgotoOptionalguidesControls the behavior of editor guides.
OptionalhideShould the cursor be hidden in the overview ruler. Defaults to false.
OptionalhoverConfigure the editor's hover.
OptionalinThis editor is used inside a diff editor.
OptionalinlayControl the behavior and rendering of the inline hints.
OptionalinlineControls whether the accessibility hint should be provided to screen reader users when an inline completion is shown.
OptionalinlineOptionalinsertInsert spaces when pressing Tab.
This setting is overridden based on the file contents when detectIndentation is on.
Defaults to true.
OptionallanguageThe initial language of the auto created model in the editor.
To not automatically create a model, use model: null.
OptionallargeSpecial handling for large files to disable certain memory intensive features. Defaults to true.
OptionalletterThe letter spacing
OptionallightbulbControl the behavior and rendering of the code action lightbulb.
OptionallineThe width reserved for line decorations (in px). Line decorations are placed between line numbers and the editor content. You can pass in a string in the format floating point followed by "ch". e.g. 1.3ch. Defaults to 10.
OptionallineThe line height
OptionallineControl the rendering of line numbers.
If it is a function, it will be invoked when rendering a line number and the return value will be rendered.
Otherwise, if it is a truthy, line numbers will be rendered normally (equivalent of using an identity function).
Otherwise, line numbers will not be rendered.
Defaults to on.
OptionallineControl the width of line numbers, by reserving horizontal space for rendering at least an amount of digits. Defaults to 5.
OptionallinkedEnable linked editing. Defaults to false.
OptionallinksEnable detecting links and making them clickable. Defaults to true.
OptionalmatchEnable highlighting of matching brackets. Defaults to 'always'.
OptionalmatchControls whether suggestions allow matches in the middle of the word instead of only at the beginning
OptionalmaxA maximal height of an editor in lines.
remove when https://github.com/Microsoft/monaco-editor/issues/103 is resolved
OptionalmaxLines above this length will not be tokenized for performance reasons. Defaults to 20000.
OptionalminA minimal height of an editor in lines.
remove when https://github.com/Microsoft/monaco-editor/issues/103 is resolved
OptionalminimapControl the behavior and rendering of the minimap.
OptionalmodelThe initial model associated with this code editor.
OptionalmouseControl the mouse pointer style, either 'text' or 'default' or 'copy' Defaults to 'text'
OptionalmouseA multiplier to be used on the deltaX and deltaY of mouse wheel scroll events.
Defaults to 1.
OptionalmouseZoom the font in the editor when using the mouse wheel in combination with holding Ctrl. Defaults to false.
OptionalmultiControls the max number of text cursors that can be in an active editor at once.
OptionalmultiMerge overlapping selections. Defaults to true
OptionalmultiThe modifier to be used to add multiple cursors with the mouse. Defaults to 'alt'
OptionalmultiConfigure the behaviour when pasting a text with the line count equal to the cursor count. Defaults to 'spread'.
OptionaloccurrencesEnable semantic occurrences highlight. Defaults to 'singleFile'. 'off' disables occurrence highlighting 'singleFile' triggers occurrence highlighting in the current document 'multiFile' triggers occurrence highlighting across valid open documents
OptionaloccurrencesControls delay for occurrences highlighting Defaults to 250. Minimum value is 0 Maximum value is 2000
OptionaloverflowPlace overflow widgets inside an external DOM node. Defaults to an internal DOM node.
OptionalovertypeControl the cursor style in overtype mode. Defaults to 'block'.
OptionalovertypeControls whether paste in overtype mode should overwrite or insert.
OptionaloverviewControls if a border should be drawn around the overview ruler.
Defaults to true.
OptionaloverviewThe number of vertical lanes the overview ruler should render. Defaults to 3.
OptionalpaddingControls the spacing around the editor.
OptionalparameterParameter hint options.
OptionalpasteControls support for changing how content is pasted into the editor.
OptionalpeekControls whether to focus the inline editor in the peek widget by default. Defaults to false.
OptionalplaceholderSets a placeholder for the editor. If set, the placeholder is shown if the editor is empty.
OptionalquickEnable quick suggestions (shadow suggestions) Defaults to true.
OptionalquickQuick suggestions show delay (in ms) Defaults to 10 (ms)
OptionalreadShould the editor be read only. See also domReadOnly.
Defaults to false.
OptionalreadThe message to display when the editor is readonly.
Optionalrenamedeprecated, use linkedEditing instead
OptionalrenderEnable rendering of control characters. Defaults to true.
OptionalrenderRender last line number when the file ends with a newline. Defaults to 'on' for Windows and macOS and 'dimmed' for Linux.
OptionalrenderEnable rendering of current line highlight. Defaults to all.
OptionalrenderControl if the current line highlight should be rendered only the editor is focused. Defaults to false.
OptionalrenderShould the editor render validation decorations. Defaults to editable.
OptionalrenderEnable rendering of whitespace. Defaults to 'selection'.
OptionalrevealWhen revealing the cursor, a virtual padding (px) is added to the cursor, turning it into a rectangle. This virtual padding ensures that the cursor gets revealed before hitting the edge of the viewport. Defaults to 30 (px).
OptionalroundedRender the editor selection with rounded borders. Defaults to true.
OptionalrulersRender vertical lines at the specified columns. Defaults to empty array.
OptionalscreenControl whether a screen reader announces inline suggestion content immediately.
OptionalscrollbarControl the behavior and rendering of the scrollbars.
OptionalscrollEnable that scrolling can go beyond the last column by a number of columns. Defaults to 5.
OptionalscrollEnable that scrolling can go one screen size after the last line. Defaults to true.
OptionalscrollEnable that the editor scrolls only the predominant axis. Prevents horizontal drift when scrolling vertically on a trackpad. Defaults to true.
OptionalselectionEnable Linux primary clipboard. Defaults to true.
OptionalselectionEnable selection highlight. Defaults to true.
OptionalselectShould the corresponding line be selected when clicking on the line number? Defaults to true.
OptionalsemanticControls whether the semanticHighlighting is shown for the languages that support it. true: semanticHighlighting is enabled for all themes false: semanticHighlighting is disabled for all themes 'configuredByTheme': semanticHighlighting is controlled by the current color theme's semanticHighlighting setting. Defaults to 'byTheme'.
OptionalshowControls strikethrough deprecated variables.
OptionalshowControls whether the fold actions in the gutter stay always visible or hide unless the mouse is over the gutter. Defaults to 'mouseover'.
OptionalshowControls fading out of unused variables.
OptionalsmartSmart select options.
OptionalsmoothEnable that the editor animates scrolling to a position. Defaults to false.
OptionalsnippetEnable snippet suggestions. Default to 'true'.
OptionalstableKeep peek editors open even when double-clicking their content or when hitting Escape.
Defaults to false.
OptionalstickyControl the behavior of sticky scroll options
OptionalstickyEmulate selection behaviour of tab characters when using spaces for indentation. This means selection will stick to tab stops.
OptionalstopPerformance guard: Stop rendering a line after x characters. Defaults to 10000. Use -1 to never stop rendering
OptionalsuggestSuggest options.
OptionalsuggestThe font size for the suggest widget. Defaults to the editor font size.
OptionalsuggestThe line height for the suggest widget. Defaults to the editor line height.
OptionalsuggestEnable the suggestion box to pop-up on trigger characters. Defaults to true.
OptionalsuggestThe history mode for suggestions.
OptionaltabEnable tab completion.
OptionaltabControls whether the editor / terminal receives tabs or defers them to the workbench for navigation.
OptionaltabThe tabindex property of the editor's textarea
OptionaltabThe number of spaces a tab is equal to.
This setting is overridden based on the file contents when detectIndentation is on.
Defaults to 4.
OptionalthemeInitial theme to be used for rendering.
The current out-of-the-box available themes are: 'vs' (default), 'vs-dark', 'hc-black', 'hc-light.
You can create custom themes via monaco.editor.defineTheme.
To switch a theme, use monaco.editor.setTheme.
NOTE: The theme might be overwritten if the OS is in high contrast mode, unless autoDetectHighContrast is set to false.
OptionaltrimRemove trailing auto inserted whitespace. Defaults to true.
OptionalunfoldControls whether clicking on the empty content after a folded line will unfold the line. Defaults to false.
OptionalunicodeControls the behavior of the unicode highlight feature (by default, ambiguous and invisible characters are highlighted).
OptionalunusualRemove unusual line terminators like LINE SEPARATOR (LS), PARAGRAPH SEPARATOR (PS). Defaults to 'prompt'.
OptionaluseControl if the editor should use shadow DOM.
OptionaluseInserting and deleting whitespace follows tab stops.
OptionalvalueThe initial value of the auto created model in the editor.
To not automatically create a model, use model: null.
OptionalwordControls whether completions should be computed based on words in the document. Defaults to true.
OptionalwordControls whether word based completions should be included from opened documents of the same language or any language.
OptionalwordSets whether line breaks appear wherever the text would otherwise overflow its content box. When wordBreak = 'normal', Use the default line break rule. When wordBreak = 'keepAll', Word breaks should not be used for Chinese/Japanese/Korean (CJK) text. Non-CJK text behavior is the same as for normal.
OptionalwordLocales used for segmenting lines into words when doing word related navigations or operations.
Specify the BCP 47 language tag of the word you wish to recognize (e.g., ja, zh-CN, zh-Hant-TW, etc.). Defaults to empty array
OptionalwordA string containing the word separators used when doing word navigation. Defaults to `~!@#$%^&*()-=+[{]}\|;:'",.<>/?
OptionalwordControl the wrapping of the editor.
When wordWrap = "off", the lines will never wrap.
When wordWrap = "on", the lines will wrap at the viewport width.
When wordWrap = "wordWrapColumn", the lines will wrap at wordWrapColumn.
When wordWrap = "bounded", the lines will wrap at min(viewport width, wordWrapColumn).
Defaults to "off".
OptionalwordConfigure word wrapping characters. A break will be introduced after these characters.
OptionalwordConfigure word wrapping characters. A break will be introduced before these characters.
OptionalwordControl the wrapping of the editor.
When wordWrap = "off", the lines will never wrap.
When wordWrap = "on", the lines will wrap at the viewport width.
When wordWrap = "wordWrapColumn", the lines will wrap at wordWrapColumn.
When wordWrap = "bounded", the lines will wrap at min(viewport width, wordWrapColumn).
Defaults to 80.
OptionalwordOverride the wordWrap setting.
OptionalwordOverride the wordWrapOverride1 setting.
OptionalwrappingControl indentation of wrapped lines. Can be: 'none', 'same', 'indent' or 'deepIndent'. Defaults to 'same' in vscode and to 'none' in monaco-editor.
OptionalwrappingControls the wrapping strategy to use. Defaults to 'simple'.
Accept suggestions on provider defined characters. Defaults to true.