Optional
accessibilityOptional
ariaContainer element to use for ARIA messages. Defaults to document.body.
Optional
ariaThe aria label for the editor's textarea (when it is focused).
Optional
automaticEnable that the editor will install a ResizeObserver to check if its container dom node size has changed. Defaults to false.
Optional
codeShow code lens Defaults to true.
Optional
colorEnable inline color decorators and color picker rendering.
Optional
colorControls the max number of color decorators that can be rendered in an editor at once.
Optional
contextmenuEnable custom contextmenu. Defaults to true.
Optional
dragControls if the editor should allow to move selections via drag and drop. Defaults to false.
Optional
extraClass name to be added to the editor.
Optional
foldingEnable code folding. Defaults to true.
Optional
fontThe font family
Optional
fontThe font size
Optional
fontThe font weight
Optional
languageThe initial language of the auto created model in the editor.
Optional
letterThe letter spacing
Optional
lightbulbControl the behavior and rendering of the code action lightbulb.
Optional
lineThe line height
Optional
lineControl the rendering of line numbers.
Defaults to true
.
Optional
linksEnable detecting links and making them clickable. Defaults to true.
Optional
minimapControl the behavior and rendering of the minimap.
Optional
multiControls the max number of text cursors that can be in an active editor at once.
Optional
multiThe modifier to be used to add multiple cursors with the mouse. Defaults to 'alt'
Optional
paddingControls the spacing around the editor.
Optional
readShould the editor be read only. See also domReadOnly
.
Defaults to false.
Optional
tabThe tabindex
property of the editor's textarea
Optional
themeInitial 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.
Optional
valueThe initial value of the auto created model in the editor.
Optional
wordControl 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".
Controls the number of lines in the editor that can be read out by a screen reader