Accept suggestions on provider defined characters. Defaults to true.
Accept suggestions on ENTER. Defaults to 'on'.
Controls the number of lines in the editor that can be read out by a screen reader
Configure the editor's accessibility support. Defaults to 'auto'. It is best to leave this to 'auto'.
The aria label for the editor's textarea (when it is focused).
Options for auto closing brackets. Defaults to language defined behavior.
Options for typing over closing quotes or brackets.
Options for auto closing quotes. Defaults to language defined behavior.
Controls whether the editor should automatically adjust the indentation when users type, paste, move or indent lines. Defaults to advanced.
Options for auto surrounding. Defaults to always allowing auto surrounding.
Enable that the editor will install an interval to check if its container dom node size has changed. Enabling this might have a severe performance impact. Defaults to false.
Timeout for running code actions on save.
Show code lens Defaults to true.
Code lens font family. Defaults to editor font family.
Code lens font size. Default to 90% of the editor font size
Enable inline color decorators and color picker rendering.
Enable that the selection with the mouse and keys is doing column selection. Defaults to false.
Control the behaviour of comments in the editor.
Enable custom contextmenu. Defaults to true.
Syntax highlighting is copied.
Control the cursor animation style, possible values are 'blink', 'smooth', 'phase', 'expand' and 'solid'. Defaults to 'blink'.
Enable smooth caret animation. Defaults to false.
Control the cursor style, either 'block' or 'line'. Defaults to 'line'.
Controls the minimal number of visible leading and trailing lines surrounding the cursor. Defaults to 0.
Controls when cursorSurroundingLines
should be enforced
Defaults to default
, cursorSurroundingLines
is not enforced when cursor position is changed
by mouse.
Control the width of the cursor when cursorStyle is set to 'line'
Controls whether the definition link opens element in the peek widget. Defaults to false.
Should the diff editor enable code lens? Defaults to false.
Control the wrapping of the diff editor.
The initial editor dimension (to avoid measuring the container).
Disable 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.
Disable the optimizations for monospace fonts. Defaults to false.
Controls if the editor should allow to move selections via drag and drop. Defaults to false.
Copying without a selection copies the current line.
Allow the user to resize the diff editor split view. Defaults to true.
Class name to be added to the editor.
FastScrolling mulitplier speed when pressing Alt
Defaults to 5.
Control the behavior of the find widget.
Display overflow widgets as fixed
.
Defaults to false
.
Enable code folding. Defaults to true.
Enable highlight for folded regions. Defaults to true.
Selects the folding strategy. 'auto' uses the strategies contributed for the current document, 'indentation' uses the indentation based folding strategy. Defaults to 'auto'.
The font family
Enable font ligatures. Defaults to false.
The font size
The font weight
Enable format on paste. Defaults to false.
Enable format on type. Defaults to false.
Enable the rendering of the glyph margin. Defaults to true in vscode and to false in monaco-editor.
Should the cursor be hidden in the overview ruler. Defaults to false.
Enable highlighting of the active indent guide. Defaults to true.
Configure the editor's hover.
Compute the diff by ignoring leading/trailing whitespace Defaults to true.
This editor is used inside a diff editor.
Control the behavior and rendering of the inline hints.
Is the diff editor inside another editor Defaults to false
The letter spacing
Control the behavior and rendering of the code action lightbulb.
The 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.
The line height
Control 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 truey, line numbers will be rendered normally (equivalent of using an identity function).
Otherwise, line numbers will not be rendered.
Defaults to on
.
Control the width of line numbers, by reserving horizontal space for rendering at least an amount of digits. Defaults to 5.
Enable linked editing. Defaults to false.
Enable detecting links and making them clickable. Defaults to true.
Enable highlighting of matching brackets. Defaults to 'always'.
Timeout in milliseconds after which diff computation is cancelled. Defaults to 5000.
Control the behavior and rendering of the minimap.
Control the mouse pointer style, either 'text' or 'default' or 'copy' Defaults to 'text'
A multiplier to be used on the deltaX
and deltaY
of mouse wheel scroll events.
Defaults to 1.
Zoom the font in the editor when using the mouse wheel in combination with holding Ctrl. Defaults to false.
Merge overlapping selections. Defaults to true
The modifier to be used to add multiple cursors with the mouse. Defaults to 'alt'
Configure the behaviour when pasting a text with the line count equal to the cursor count. Defaults to 'spread'.
Enable semantic occurrences highlight. Defaults to true.
Original model should be editable? Defaults to false.
Place overflow widgets inside an external DOM node. Defaults to an internal DOM node.
Controls if a border should be drawn around the overview ruler.
Defaults to true
.
The number of vertical lanes the overview ruler should render. Defaults to 3.
Controls the spacing around the editor.
Parameter hint options.
Controls whether to focus the inline editor in the peek widget by default. Defaults to false.
Enable quick suggestions (shadow suggestions) Defaults to true.
Quick suggestions show delay (in ms) Defaults to 10 (ms)
Should the editor be read only. Defaults to false.
deprecated, use linkedEditing instead
Enable rendering of control characters. Defaults to false.
Render last line number when the file ends with a newline. Defaults to true.
Enable rendering of indent guides. Defaults to true.
Render +/- indicators for added/deleted changes. Defaults to true.
Enable rendering of current line highlight. Defaults to all.
Control if the current line highlight should be rendered only the editor is focused. Defaults to false.
Is the diff editor should render overview ruler Defaults to true
Render the differences in two side-by-side editors. Defaults to true.
Should the editor render validation decorations. Defaults to editable.
Enable rendering of whitespace. Defaults to none.
When 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).
Render the editor selection with rounded borders. Defaults to true.
Render vertical lines at the specified columns. Defaults to empty array.
Enable that scrolling can go beyond the last column by a number of columns. Defaults to 5.
Enable that scrolling can go one screen size after the last line. Defaults to true.
Enable that the editor scrolls only the predominant axis. Prevents horizontal drift when scrolling vertically on a trackpad. Defaults to true.
Control the behavior and rendering of the scrollbars.
Should the corresponding line be selected when clicking on the line number? Defaults to true.
Enable Linux primary clipboard. Defaults to true.
Enable selection highlight. Defaults to true.
Controls strikethrough deprecated variables.
Controls whether the fold actions in the gutter stay always visible or hide unless the mouse is over the gutter. Defaults to 'mouseover'.
Controls fading out of unused variables.
Smart select opptions;
Enable that the editor animates scrolling to a position. Defaults to false.
Enable snippet suggestions. Default to 'true'.
Emulate selection behaviour of tab characters when using spaces for indentation. This means selection will stick to tab stops.
Performance guard: Stop rendering a line after x characters. Defaults to 10000. Use -1 to never stop rendering
Suggest options.
The font size for the suggest widget. Defaults to the editor font size.
The line height for the suggest widget. Defaults to the editor line height.
Enable the suggestion box to pop-up on trigger characters. Defaults to true.
The history mode for suggestions.
Enable tab completion.
The tabindex
property of the editor's textarea
Initial theme to be used for rendering.
The current out-of-the-box available themes are: 'vs' (default), 'vs-dark', 'hc-black'.
You can create custom themes via monaco.editor.defineTheme
.
To switch a theme, use monaco.editor.setTheme
Controls whether clicking on the empty content after a folded line will unfold the line. Defaults to false.
Remove unusual line terminators like LINE SEPARATOR (LS), PARAGRAPH SEPARATOR (PS). Defaults to 'prompt'.
Inserting and deleting whitespace follows tab stops.
A string containing the word separators used when doing word navigation. Defaults to `~!@#$%^&*()-=+[{]}\|;:'",.<>/?
Control 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".
Configure word wrapping characters. A break will be introduced after these characters. Defaults to ' \t})]?|/&.,;¢°′″‰℃、。。、¢,.:;?!%・・ゝゞヽヾーァィゥェォッャュョヮヵヶぁぃぅぇぉっゃゅょゎゕゖㇰㇱㇲㇳㇴㇵㇶㇷㇸㇹㇺㇻㇼㇽㇾㇿ々〻ァィゥェォャュョッー”〉》」』】〕)]}」'.
Configure word wrapping characters. A break will be introduced before these characters. Defaults to '([{‘“〈《「『【〔([{「£¥$£¥++'.
Control 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.
Override the wordWrap
setting.
Override the wordWrapOverride1
setting.
Control indentation of wrapped lines. Can be: 'none', 'same', 'indent' or 'deepIndent'. Defaults to 'same' in vscode and to 'none' in monaco-editor.
Controls the wrapping strategy to use. Defaults to 'simple'.
Generated using TypeDoc
The options to create a diff editor.