Variable EditorOptions
const EditorOptions: {
acceptSuggestionOnCommitCharacter: IEditorOption<
acceptSuggestionOnCommitCharacter,
boolean,
>;
acceptSuggestionOnEnter: IEditorOption<
acceptSuggestionOnEnter,
"on"
| "off"
| "smart",
>;
accessibilityPageSize: IEditorOption<
accessibilityPageSize,
number,
>;
accessibilitySupport: IEditorOption<
accessibilitySupport,
AccessibilitySupport,
>;
allowOverflow: IEditorOption<allowOverflow, boolean>;
allowVariableFonts: IEditorOption<
allowVariableFonts,
boolean,
>;
allowVariableFontsInAccessibilityMode: IEditorOption<
allowVariableFontsInAccessibilityMode,
boolean,
>;
allowVariableLineHeights: IEditorOption<
allowVariableLineHeights,
boolean,
>;
ariaLabel: IEditorOption<ariaLabel, string>;
ariaRequired: IEditorOption<ariaRequired, boolean>;
autoClosingBrackets: IEditorOption<
autoClosingBrackets,
| "always"
| "never"
| "languageDefined"
| "beforeWhitespace",
>;
autoClosingComments: IEditorOption<
autoClosingComments,
| "always"
| "never"
| "languageDefined"
| "beforeWhitespace",
>;
autoClosingDelete: IEditorOption<
autoClosingDelete,
"auto"
| "always"
| "never",
>;
autoClosingOvertype: IEditorOption<
autoClosingOvertype,
"auto"
| "always"
| "never",
>;
autoClosingQuotes: IEditorOption<
autoClosingQuotes,
| "always"
| "never"
| "languageDefined"
| "beforeWhitespace",
>;
autoIndent: IEditorOption<
autoIndent,
EditorAutoIndentStrategy,
>;
autoIndentOnPaste: IEditorOption<
autoIndentOnPaste,
boolean,
>;
autoIndentOnPasteWithinString: IEditorOption<
autoIndentOnPasteWithinString,
boolean,
>;
automaticLayout: IEditorOption<
automaticLayout,
boolean,
>;
autoSurround: IEditorOption<
autoSurround,
"never"
| "languageDefined"
| "quotes"
| "brackets",
>;
bracketPairColorization: IEditorOption<
bracketPairColorization,
Readonly<Required<IBracketPairColorizationOptions>>,
>;
bracketPairGuides: IEditorOption<
guides,
Readonly<Required<IGuidesOptions>>,
>;
codeLens: IEditorOption<codeLens, boolean>;
codeLensFontFamily: IEditorOption<
codeLensFontFamily,
string,
>;
codeLensFontSize: IEditorOption<
codeLensFontSize,
number,
>;
colorDecoratorActivatedOn: IEditorOption<
colorDecoratorsActivatedOn,
"hover"
| "clickAndHover"
| "click",
>;
colorDecorators: IEditorOption<
colorDecorators,
boolean,
>;
colorDecoratorsLimit: IEditorOption<
colorDecoratorsLimit,
number,
>;
columnSelection: IEditorOption<
columnSelection,
boolean,
>;
comments: IEditorOption<
comments,
Readonly<Required<IEditorCommentsOptions>>,
>;
contextmenu: IEditorOption<contextmenu, boolean>;
copyWithSyntaxHighlighting: IEditorOption<
copyWithSyntaxHighlighting,
boolean,
>;
cursorBlinking: IEditorOption<
cursorBlinking,
TextEditorCursorBlinkingStyle,
>;
cursorHeight: IEditorOption<cursorHeight, number>;
cursorSmoothCaretAnimation: IEditorOption<
cursorSmoothCaretAnimation,
"on"
| "off"
| "explicit",
>;
cursorStyle: IEditorOption<
cursorStyle,
TextEditorCursorStyle,
>;
cursorSurroundingLines: IEditorOption<
cursorSurroundingLines,
number,
>;
cursorSurroundingLinesStyle: IEditorOption<
cursorSurroundingLinesStyle,
"default"
| "all",
>;
cursorWidth: IEditorOption<cursorWidth, number>;
defaultColorDecorators: IEditorOption<
defaultColorDecorators,
"auto"
| "always"
| "never",
>;
definitionLinkOpensInPeek: IEditorOption<
definitionLinkOpensInPeek,
boolean,
>;
disableLayerHinting: IEditorOption<
disableLayerHinting,
boolean,
>;
disableMonospaceOptimizations: IEditorOption<
disableMonospaceOptimizations,
boolean,
>;
domReadOnly: IEditorOption<domReadOnly, boolean>;
dragAndDrop: IEditorOption<dragAndDrop, boolean>;
dropIntoEditor: IEditorOption<
dropIntoEditor,
Readonly<Required<IDropIntoEditorOptions>>,
>;
editContext: IEditorOption<editContext, boolean>;
editorClassName: IEditorOption<editorClassName, string>;
effectiveAllowVariableFonts: IEditorOption<
effectiveAllowVariableFonts,
boolean,
>;
effectiveCursorStyle: IEditorOption<
effectiveCursorStyle,
TextEditorCursorStyle,
>;
effectiveEditContextEnabled: IEditorOption<
effectiveEditContext,
boolean,
>;
emptySelectionClipboard: IEditorOption<
emptySelectionClipboard,
boolean,
>;
experimentalGpuAcceleration: IEditorOption<
experimentalGpuAcceleration,
"on"
| "off",
>;
experimentalWhitespaceRendering: IEditorOption<
experimentalWhitespaceRendering,
"off"
| "svg"
| "font",
>;
extraEditorClassName: IEditorOption<
extraEditorClassName,
string,
>;
fastScrollSensitivity: IEditorOption<
fastScrollSensitivity,
number,
>;
find: IEditorOption<
find,
Readonly<Required<IEditorFindOptions>>,
>;
fixedOverflowWidgets: IEditorOption<
fixedOverflowWidgets,
boolean,
>;
folding: IEditorOption<folding, boolean>;
foldingHighlight: IEditorOption<
foldingHighlight,
boolean,
>;
foldingImportsByDefault: IEditorOption<
foldingImportsByDefault,
boolean,
>;
foldingMaximumRegions: IEditorOption<
foldingMaximumRegions,
number,
>;
foldingStrategy: IEditorOption<
foldingStrategy,
"auto"
| "indentation",
>;
fontFamily: IEditorOption<fontFamily, string>;
fontInfo: IEditorOption<fontInfo, FontInfo>;
fontLigatures2: IEditorOption<fontLigatures, string>;
fontSize: IEditorOption<fontSize, number>;
fontVariations: IEditorOption<fontVariations, string>;
fontWeight: IEditorOption<fontWeight, string>;
formatOnPaste: IEditorOption<formatOnPaste, boolean>;
formatOnType: IEditorOption<formatOnType, boolean>;
glyphMargin: IEditorOption<glyphMargin, boolean>;
gotoLocation: IEditorOption<
gotoLocation,
Readonly<Required<IGotoLocationOptions>>,
>;
hideCursorInOverviewRuler: IEditorOption<
hideCursorInOverviewRuler,
boolean,
>;
hover: IEditorOption<
hover,
Readonly<Required<IEditorHoverOptions>>,
>;
inDiffEditor: IEditorOption<inDiffEditor, boolean>;
inertialScroll: IEditorOption<inertialScroll, boolean>;
inlayHints: IEditorOption<
inlayHints,
Readonly<Required<IEditorInlayHintsOptions>>,
>;
inlineCompletionsAccessibilityVerbose: IEditorOption<
inlineCompletionsAccessibilityVerbose,
boolean,
>;
inlineSuggest: IEditorOption<
inlineSuggest,
Readonly<RequiredRecursive<IInlineSuggestOptions>>,
>;
layoutInfo: IEditorOption<layoutInfo, EditorLayoutInfo>;
letterSpacing: IEditorOption<letterSpacing, number>;
lightbulb: IEditorOption<
lightbulb,
Readonly<Required<IEditorLightbulbOptions>>,
>;
lineDecorationsWidth: IEditorOption<
lineDecorationsWidth,
number,
>;
lineHeight: IEditorOption<lineHeight, number>;
lineNumbers: IEditorOption<
lineNumbers,
InternalEditorRenderLineNumbersOptions,
>;
lineNumbersMinChars: IEditorOption<
lineNumbersMinChars,
number,
>;
linkedEditing: IEditorOption<linkedEditing, boolean>;
links: IEditorOption<links, boolean>;
matchBrackets: IEditorOption<
matchBrackets,
"always"
| "never"
| "near",
>;
minimap: IEditorOption<
minimap,
Readonly<Required<IEditorMinimapOptions>>,
>;
mouseMiddleClickAction: IEditorOption<
mouseMiddleClickAction,
MouseMiddleClickAction,
>;
mouseStyle: IEditorOption<
mouseStyle,
"default"
| "text"
| "copy",
>;
mouseWheelScrollSensitivity: IEditorOption<
mouseWheelScrollSensitivity,
number,
>;
mouseWheelZoom: IEditorOption<mouseWheelZoom, boolean>;
multiCursorLimit: IEditorOption<
multiCursorLimit,
number,
>;
multiCursorMergeOverlapping: IEditorOption<
multiCursorMergeOverlapping,
boolean,
>;
multiCursorModifier: IEditorOption<
multiCursorModifier,
"altKey"
| "metaKey"
| "ctrlKey",
>;
multiCursorPaste: IEditorOption<
multiCursorPaste,
"spread"
| "full",
>;
occurrencesHighlight: IEditorOption<
occurrencesHighlight,
"off"
| "singleFile"
| "multiFile",
>;
occurrencesHighlightDelay: IEditorOption<
occurrencesHighlightDelay,
number,
>;
overtypeCursorStyle: IEditorOption<
overtypeCursorStyle,
TextEditorCursorStyle,
>;
overtypeOnPaste: IEditorOption<
overtypeOnPaste,
boolean,
>;
overviewRulerBorder: IEditorOption<
overviewRulerBorder,
boolean,
>;
overviewRulerLanes: IEditorOption<
overviewRulerLanes,
number,
>;
padding: IEditorOption<
padding,
Readonly<Required<IEditorPaddingOptions>>,
>;
parameterHints: IEditorOption<
parameterHints,
Readonly<Required<IEditorParameterHintOptions>>,
>;
pasteAs: IEditorOption<
pasteAs,
Readonly<Required<IPasteAsOptions>>,
>;
peekWidgetDefaultFocus: IEditorOption<
peekWidgetDefaultFocus,
"tree"
| "editor",
>;
pixelRatio: IEditorOption<pixelRatio, number>;
placeholder: IEditorOption<placeholder, string>;
quickSuggestions: IEditorOption<
quickSuggestions,
InternalQuickSuggestionsOptions,
>;
quickSuggestionsDelay: IEditorOption<
quickSuggestionsDelay,
number,
>;
readOnly: IEditorOption<readOnly, boolean>;
readOnlyMessage: IEditorOption<readOnlyMessage, any>;
renameOnType: IEditorOption<renameOnType, boolean>;
renderControlCharacters: IEditorOption<
renderControlCharacters,
boolean,
>;
renderFinalNewline: IEditorOption<
renderFinalNewline,
"on"
| "off"
| "dimmed",
>;
renderLineHighlight: IEditorOption<
renderLineHighlight,
"all"
| "line"
| "none"
| "gutter",
>;
renderLineHighlightOnlyWhenFocus: IEditorOption<
renderLineHighlightOnlyWhenFocus,
boolean,
>;
renderRichScreenReaderContent: IEditorOption<
renderRichScreenReaderContent,
boolean,
>;
renderValidationDecorations: IEditorOption<
renderValidationDecorations,
"on"
| "off"
| "editable",
>;
renderWhitespace: IEditorOption<
renderWhitespace,
"all"
| "none"
| "boundary"
| "selection"
| "trailing",
>;
revealHorizontalRightPadding: IEditorOption<
revealHorizontalRightPadding,
number,
>;
roundedSelection: IEditorOption<
roundedSelection,
boolean,
>;
rulers: IEditorOption<rulers, IRulerOption[]>;
screenReaderAnnounceInlineSuggestion: IEditorOption<
screenReaderAnnounceInlineSuggestion,
boolean,
>;
scrollbar: IEditorOption<
scrollbar,
InternalEditorScrollbarOptions,
>;
scrollBeyondLastColumn: IEditorOption<
scrollBeyondLastColumn,
number,
>;
scrollBeyondLastLine: IEditorOption<
scrollBeyondLastLine,
boolean,
>;
scrollOnMiddleClick: IEditorOption<
scrollOnMiddleClick,
boolean,
>;
scrollPredominantAxis: IEditorOption<
scrollPredominantAxis,
boolean,
>;
selectionClipboard: IEditorOption<
selectionClipboard,
boolean,
>;
selectionHighlight: IEditorOption<
selectionHighlight,
boolean,
>;
selectionHighlightMaxLength: IEditorOption<
selectionHighlightMaxLength,
number,
>;
selectionHighlightMultiline: IEditorOption<
selectionHighlightMultiline,
boolean,
>;
selectOnLineNumbers: IEditorOption<
selectOnLineNumbers,
boolean,
>;
showDeprecated: IEditorOption<showDeprecated, boolean>;
showFoldingControls: IEditorOption<
showFoldingControls,
"always"
| "never"
| "mouseover",
>;
showUnused: IEditorOption<showUnused, boolean>;
smartSelect: IEditorOption<
smartSelect,
Readonly<Required<ISmartSelectOptions>>,
>;
smoothScrolling: IEditorOption<
smoothScrolling,
boolean,
>;
snippetSuggestions: IEditorOption<
snippetSuggestions,
"none"
| "top"
| "bottom"
| "inline",
>;
stickyScroll: IEditorOption<
stickyScroll,
Readonly<Required<IEditorStickyScrollOptions>>,
>;
stickyTabStops: IEditorOption<stickyTabStops, boolean>;
stopRenderingLineAfter: IEditorOption<
stopRenderingLineAfter,
number,
>;
suggest: IEditorOption<
suggest,
Readonly<Required<ISuggestOptions>>,
>;
suggestFontSize: IEditorOption<suggestFontSize, number>;
suggestLineHeight: IEditorOption<
suggestLineHeight,
number,
>;
suggestOnTriggerCharacters: IEditorOption<
suggestOnTriggerCharacters,
boolean,
>;
suggestSelection: IEditorOption<
suggestSelection,
"first"
| "recentlyUsed"
| "recentlyUsedByPrefix",
>;
tabCompletion: IEditorOption<
tabCompletion,
"on"
| "off"
| "onlySnippets",
>;
tabFocusMode: IEditorOption<tabFocusMode, boolean>;
tabIndex: IEditorOption<tabIndex, number>;
trimWhitespaceOnDelete: IEditorOption<
trimWhitespaceOnDelete,
boolean,
>;
unfoldOnClickAfterEndOfLine: IEditorOption<
unfoldOnClickAfterEndOfLine,
boolean,
>;
unicodeHighlight: IEditorOption<
unicodeHighlighting,
Required<Readonly<IUnicodeHighlightOptions>>,
>;
unusualLineTerminators: IEditorOption<
unusualLineTerminators,
"off"
| "auto"
| "prompt",
>;
useShadowDOM: IEditorOption<useShadowDOM, boolean>;
useTabStops: IEditorOption<useTabStops, boolean>;
wordBreak: IEditorOption<
wordBreak,
"normal"
| "keepAll",
>;
wordSegmenterLocales: IEditorOption<
wordSegmenterLocales,
string[],
>;
wordSeparators: IEditorOption<wordSeparators, string>;
wordWrap: IEditorOption<
wordWrap,
"wordWrapColumn"
| "on"
| "off"
| "bounded",
>;
wordWrapBreakAfterCharacters: IEditorOption<
wordWrapBreakAfterCharacters,
string,
>;
wordWrapBreakBeforeCharacters: IEditorOption<
wordWrapBreakBeforeCharacters,
string,
>;
wordWrapColumn: IEditorOption<wordWrapColumn, number>;
wordWrapOverride1: IEditorOption<
wordWrapOverride1,
"on"
| "off"
| "inherit",
>;
wordWrapOverride2: IEditorOption<
wordWrapOverride2,
"on"
| "off"
| "inherit",
>;
wrapOnEscapedLineFeeds: IEditorOption<
wrapOnEscapedLineFeeds,
boolean,
>;
wrappingIndent: IEditorOption<
wrappingIndent,
WrappingIndent,
>;
wrappingInfo: IEditorOption<
wrappingInfo,
EditorWrappingInfo,
>;
wrappingStrategy: IEditorOption<
wrappingStrategy,
"simple"
| "advanced",
>;
}