Class EditorOptions
java.lang.Object
org.primefaces.shaded.json.JSONObject
org.primefaces.extensions.model.monacoeditor.EditorOptions
- All Implemented Interfaces:
Serializable
The options to create a Monaco Code editor instance.
- See Also:
-
Field Summary
Fields inherited from class org.primefaces.shaded.json.JSONObject
NULL
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddRuler
(EditorRulerOption... items) addWordSegmenterLocale
(String... items) getFind()
getHover()
org.primefaces.shaded.json.JSONArray
getTheme()
org.primefaces.shaded.json.JSONArray
isLinks()
Deprecated.setAcceptSuggestionOnCommitCharacter
(Boolean acceptSuggestionOnCommitCharacter) setAcceptSuggestionOnEnter
(String acceptSuggestionOnEnter) setAcceptSuggestionOnEnter
(EAcceptSuggestionOnEnter acceptSuggestionOnEnter) setAccessibilityHelpUrl
(String accessibilityHelpUrl) setAccessibilityPageSize
(Number accessibilityPageSize) setAccessibilitySupport
(String accessibilitySupport) setAccessibilitySupport
(EAccessibilitySupport accessibilitySupport) setAriaLabel
(String ariaLabel) setAutoClosingBrackets
(String autoClosingBrackets) setAutoClosingBrackets
(EAutoClosingBrackets autoClosingBrackets) setAutoClosingDelete
(String autoClosingDelete) setAutoClosingDelete
(EAutoClosingEditStrategy autoClosingDelete) setAutoClosingOvertype
(String autoClosingOvertype) setAutoClosingOvertype
(EAutoClosingOvertype autoClosingOvertype) setAutoClosingQuotes
(String autoClosingQuotes) setAutoClosingQuotes
(EAutoClosingQuotes autoClosingQuotes) setAutoDetectHighContrast
(Boolean autoDetectHighContrast) setAutoIndent
(String autoIndent) setAutoIndent
(EAutoIndent autoIndent) setAutomaticLayout
(Boolean automaticLayout) setAutoSurround
(String autoSurround) setAutoSurround
(EAutoSurround autoSurround) setBracketPairColorization
(EditorBracketPairColorizationOptions bracketPairColorization) setCodeActionsOnSaveTimeout
(Number codeActionsOnSaveTimeout) setCodeLens
(Boolean codeLens) setCodeLensFontFamily
(String codeLensFontFamily) setCodeLensFontSize
(Number codeLensFontSize) setColorDecorators
(Boolean colorDecorators) setColorDecoratorsActivatedOn
(String colorDecoratorsActivatedOn) setColorDecoratorsActivatedOn
(EColorDecoratorsActivatedOnMode colorDecoratorsActivatedOn) setColorDecoratorsLimit
(Boolean colorDecoratorsLimit) setColumnSelection
(Boolean columnSelection) setComments
(EditorCommentsOptions comments) setContextmenu
(Boolean contextmenu) setCopyWithSyntaxHighlighting
(Boolean copyWithSyntaxHighlighting) setCursorBlinking
(String cursorBlinking) setCursorBlinking
(ECursorBlinking cursorBlinking) setCursorSmoothCaretAnimation
(String cursorSmoothCaretAnimation) setCursorSmoothCaretAnimation
(ECursorSmoothCaretAnimation cursorSmoothCaretAnimation) setCursorStyle
(String cursorStyle) setCursorStyle
(ECursorStyle cursorStyle) setCursorSurroundingLines
(Number cursorSurroundingLines) setCursorSurroundingLinesStyle
(String cursorSurroundingLinesStyle) setCursorSurroundingLinesStyle
(ECursorSurroundingLinesStyle cursorSurroundingLinesStyle) setCursorWidth
(Number cursorWidth) setDefaultColorDecorators
(Boolean defaultColorDecorators) setDefinitionLinkOpensInPeek
(Boolean definitionLinkOpensInPeek) setDetectIndentation
(Boolean detectIndentation) setDimension
(EditorDimension dimension) setDisableLayerHinting
(Boolean disableLayerHinting) setDisableMonospaceOptimizations
(Boolean disableMonospaceOptimizations) setDragAndDrop
(Boolean dragAndDrop) setDropIntoEditor
(EditorDropIntoEditorOptions dropIntoEditor) setEmptySelectionClipboard
(Boolean emptySelectionClipboard) setExperimentalInlineEdit
(EditorInlineEditOptions experimentalInlineEdit) setExperimentalWhitespaceRendering
(String experimentalWhitespaceRendering) setExperimentalWhitespaceRendering
(EExperimentalWhitespaceRendering experimentalWhitespaceRendering) setExtraEditorClassName
(String extraEditorClassName) setFastScrollSensitivity
(Number fastScrollSensitivity) setFind
(EditorFindOptions find) setFixedOverflowWidgets
(Boolean fixedOverflowWidgets) setFolding
(Boolean folding) setFoldingHighlight
(Boolean foldingHighlight) setFoldingImportsByDefault
(Boolean foldingImportsByDefault) setFoldingMaximumRegions
(Number foldingMaximumRegions) setFoldingStrategy
(String foldingStrategy) setFoldingStrategy
(EFoldingStrategy foldingStrategy) setFontFamily
(String fontFamily) setFontLigatures
(Boolean fontLigatures) setFontLigatures
(String fontLigatures) setFontSize
(Number fontSize) setFontVariations
(Boolean fontVariations) setFontVariations
(String fontVariations) setFontWeight
(String fontWeight) setFontWeight
(EFontWeight fontWeight) setFormatOnPaste
(Boolean formatOnPaste) setFormatOnType
(Boolean formatOnType) setGlyphMargin
(Boolean glyphMargin) setGotoLocation
(EditorGotoLocationOptions gotoLocation) setGuides
(EditorGuidesOptions guides) setHideCursorInOverviewRuler
(Boolean hideCursorInOverviewRuler) setHover
(EditorHoverOptions hover) setInDiffEditor
(Boolean inDiffEditor) setInlayHints
(EditorInlayHintOptions inlayHints) setInlineCompletionsAccessibilityVerbose
(Boolean inlineCompletionsAccessibilityVerbose) setInlineSuggest
(EditorInlineSuggestOptions inlineSuggest) setInsertSpaces
(Boolean insertSpaces) setLanguage
(String language) setLanguage
(ELanguage language) setLargeFileOptimizations
(Boolean largeFileOptimizations) setLetterSpacing
(Number letterSpacing) setLightbulb
(EditorLightbulbOptions lightbulb) setLineDecorationsWidth
(Number lineDecorationsWidth) setLineDecorationsWidth
(String lineDecorationsWidth) setLineHeight
(Number lineHeight) setLineNumbers
(String lineNumbers) setLineNumbers
(ELineNumbers lineNumbers) setLineNumbersMinChars
(Number lineNumbersMinChars) setLinkedEditing
(Boolean linkedEditing) setMatchBrackets
(String matchBrackets) setMatchBrackets
(EMatchBrackets matchBrackets) setMatchOnWordStartOnly
(Boolean matchOnWordStartOnly) setMaxTokenizationLineLength
(Number maxTokenizationLineLength) setMinimap
(EditorMinimapOptions minimap) setMouseStyle
(String mouseStyle) setMouseStyle
(EMouseStyle mouseStyle) setMouseWheelScrollSensitivity
(Number mouseWheelScrollSensitivity) setMouseWheelZoom
(Boolean mouseWheelZoom) setMultiCursorLimit
(Number multiCursorLimit) setMultiCursorMergeOverlapping
(Boolean multiCursorMergeOverlapping) setMultiCursorModifier
(String multiCursorModifier) setMultiCursorModifier
(EMultiCursorModifier multiCursorModifier) setMultiCursorPaste
(String multiCursorPaste) setMultiCursorPaste
(EMultiCursorPaste multiCursorPaste) setOccurrencesHighlight
(String occurrencesHighlight) setOccurrencesHighlight
(EOccurrencesHighlight occurrencesHighlight) setOverviewRulerBorder
(Boolean overviewRulerBorder) setOverviewRulerLanes
(Number overviewRulerLanes) setPadding
(EditorPaddingOptions padding) setParameterHints
(EditorParameterHints parameterHints) setPasteAs
(EditorPasteAsOptions pasteAs) setPeekWidgetDefaultFocus
(String peekWidgetDefaultFocus) setPeekWidgetDefaultFocus
(EPeekWidgetDefaultFocus peekWidgetDefaultFocus) setPlaceholder
(String placeholder) setQuickSuggestions
(EditorQuickSuggestionsOptions quickSuggestions) setQuickSuggestionsDelay
(Number quickSuggestionsDelay) setReadOnly
(Boolean readOnly) setRenameOnType
(Boolean renameOnType) Deprecated.setRenderControlCharacters
(Boolean renderControlCharacters) setRenderFinalNewline
(String renderFinalNewline) setRenderFinalNewline
(ERenderFinalNewline renderFinalNewline) setRenderLineHighlight
(String renderLineHighlight) setRenderLineHighlight
(ERenderLineHighlight renderLineHighlight) setRenderLineHighlightOnlyWhenFocus
(Boolean renderLineHighlightOnlyWhenFocus) setRenderValidationDecorations
(String renderValidationDecorations) setRenderValidationDecorations
(ERenderValidationDecorations renderValidationDecorations) setRenderWhitespace
(String renderWhitespace) setRenderWhitespace
(ERenderWhitespace renderWhitespace) setRevealHorizontalRightPadding
(Number revealHorizontalRightPadding) setRoundedSelection
(Boolean roundedSelection) setRulers
(List<EditorRulerOption> rulers) setRulers
(org.primefaces.shaded.json.JSONArray rulers) setScreenReaderAnnounceInlineSuggestion
(Boolean screenReaderAnnounceInlineSuggestion) setScrollbar
(EditorScrollbarOptions scrollbar) setScrollBeyondLastColumn
(Number scrollBeyondLastColumn) setScrollBeyondLastLine
(Boolean scrollBeyondLastLine) setScrollPredominantAxis
(Boolean scrollPredominantAxis) setSelectionClipboard
(Boolean selectionClipboard) setSelectionHighlight
(Boolean selectionHighlight) setSelectOnLineNumbers
(Boolean selectOnLineNumbers) setSemanticHighlightingEnabled
(String semanticHighlightingEnabled) setSemanticHighlightingEnabled
(ESemanticHighlightingEnabled semanticHighlightingEnabled) setShowDeprecated
(Boolean showDeprecated) setShowFoldingControls
(String showFoldingControls) setShowFoldingControls
(EShowFoldingControls showFoldingControls) setShowUnused
(Boolean showUnused) setSmartSelect
(EditorSmartSelectOptions smartSelect) setSmoothScrolling
(Boolean smoothScrolling) setSnippetSuggestions
(String snippetSuggestions) setSnippetSuggestions
(ESnippetSuggestions snippetSuggestions) setStablePeek
(Boolean stablePeek) setStickyScroll
(EditorStickyScrollOptions stickyScroll) setStickyTabStops
(Boolean stickyTabStops) setStopRenderingLineAfter
(Number stopRenderingLineAfter) setSuggest
(EditorSuggestOptions suggest) setSuggestFontSize
(Number suggestFontSize) setSuggestLineHeight
(Number suggestLineHeight) setSuggestOnTriggerCharacters
(Boolean suggestOnTriggerCharacters) setSuggestSelection
(String suggestSelection) setSuggestSelection
(ESuggestSelection suggestSelection) setTabCompletion
(String tabCompletion) setTabCompletion
(ETabCompletion tabCompletion) setTabFocusMode
(Boolean tabFocusMode) setTabIndex
(Number tabIndex) setTabSize
(Number tabSize) setTrimAutoWhitespace
(Boolean trimAutoWhitespace) setUnfoldOnClickAfterEndOfLine
(Boolean unfoldOnClickAfterEndOfLine) setUnicodeHighlight
(EditorUnicodeHighlightOptions unicodeHighlight) setUnusualLineTerminators
(String unusualLineTerminators) setUnusualLineTerminators
(EUnusualLineTerminators unusualLineTerminators) setUseShadowDOM
(Boolean useShadowDOM) setUseTabStops
(Boolean useTabStops) setWordBasedSuggestions
(String wordBasedSuggestions) setWordBasedSuggestions
(EWordBasedSuggestions wordBasedSuggestions) setWordBasedSuggestionsOnlySameLanguage
(Boolean wordBasedSuggestionsOnlySameLanguage) setWordBreak
(String wordBreak) setWordBreak
(EWordBreak wordBreak) setWordSegmenterLocales
(List<String> wordSegmenterLocales) setWordSegmenterLocales
(org.primefaces.shaded.json.JSONArray wordSegmenterLocales) setWordSeparators
(String wordSeparators) setWordWrap
(String wordWrap) setWordWrap
(EWordWrap wordWrap) setWordWrapBreakAfterCharacters
(String wordWrapBreakAfterCharacters) setWordWrapBreakBeforeCharacters
(String wordWrapBreakBeforeCharacters) setWordWrapColumn
(Number wordWrapColumn) setWordWrapMinified
(Boolean wordWrapMinified) setWordWrapOverride1
(String wordWrapOverride1) setWordWrapOverride1
(EWordWrapOverride1 wordWrapOverride1) setWordWrapOverride2
(String wordWrapOverride2) setWordWrapOverride2
(EWordWrapOverride2 wordWrapOverride2) setWrappingIndent
(String wrappingIndent) setWrappingIndent
(EWrappingIndent wrappingIndent) setWrappingStrategy
(String wrappingStrategy) setWrappingStrategy
(EWrappingStrategy wrappingStrategy) Methods inherited from class org.primefaces.shaded.json.JSONObject
accumulate, append, clear, doubleToString, entrySet, get, getBigDecimal, getBigInteger, getBoolean, getDouble, getEnum, getFloat, getInt, getJSONArray, getJSONObject, getLong, getMapType, getNames, getNames, getNumber, getString, has, increment, isDecimalNotation, isEmpty, isNull, keys, keySet, length, names, numberToString, opt, optBigDecimal, optBigInteger, optBoolean, optBoolean, optBooleanObject, optBooleanObject, optDouble, optDouble, optDoubleObject, optDoubleObject, optEnum, optEnum, optFloat, optFloat, optFloatObject, optFloatObject, optInt, optInt, optIntegerObject, optIntegerObject, optJSONArray, optJSONArray, optJSONObject, optJSONObject, optLong, optLong, optLongObject, optLongObject, optNumber, optNumber, optQuery, optQuery, optString, optString, put, put, put, put, put, put, put, put, putOnce, putOpt, query, query, quote, quote, remove, similar, stringToNumber, stringToValue, testValidity, toJSONArray, toMap, toString, toString, valueToString, wrap, write, write
-
Constructor Details
-
EditorOptions
public EditorOptions()
-
-
Method Details
-
getBracketPairColorization
- Returns:
- Configures bracket pair colorization (disabled by default).
-
setBracketPairColorization
public EditorOptions setBracketPairColorization(EditorBracketPairColorizationOptions bracketPairColorization) - Parameters:
bracketPairColorization
- Configures bracket pair colorization (disabled by default).- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
getComments
- Returns:
- Control the behavior of comments in the editor.
-
setComments
- Parameters:
comments
- Control the behavior of comments in the editor.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
getDropIntoEditor
- Returns:
- Controls dropping into the editor from an external source. When enabled, this shows a preview of the drop location and triggers an onDropIntoEditor event.
-
setDropIntoEditor
- Parameters:
dropIntoEditor
- Controls dropping into the editor from an external source. When enabled, this shows a preview of the drop location and triggers an onDropIntoEditor event.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
getFind
- Returns:
- Control the behavior of the find widget.
-
setFind
- Parameters:
find
- Control the behavior of the find widget.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
getGuides
- Returns:
- Controls the behavior of editor guides.
-
setGuides
- Parameters:
guides
- Controls the behavior of editor guides.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
getGotoLocation
-
setGotoLocation
-
getHover
- Returns:
- Configure the editor's hover.
-
setHover
- Parameters:
hover
- Configure the editor's hover.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
getInlayHints
- Returns:
- Control the behavior and rendering of the inline hints.
-
setInlayHints
- Parameters:
inlayHints
- Control the behavior and rendering of the inline hints.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
getInlineSuggest
- Returns:
- Control the behavior and rendering of the inline completions.
-
setInlineSuggest
- Parameters:
inlineSuggest
- Control the behavior and rendering of the inline completions.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
getLightbulb
- Returns:
- Control the behavior and rendering of the code action lightbulb.
-
setLightbulb
- Parameters:
lightbulb
- Control the behavior and rendering of the code action lightbulb.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
getMinimap
- Returns:
- Control the behavior and rendering of the minimap.
-
setMinimap
- Parameters:
minimap
- Control the behavior and rendering of the minimap.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
getPadding
- Returns:
- Controls the spacing around the editor.
-
setPadding
- Parameters:
padding
- Controls the spacing around the editor.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
getParameterHints
- Returns:
- Parameter hint options.
-
setParameterHints
- Parameters:
parameterHints
- Parameter hint options.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
getQuickSuggestions
- Returns:
- Enable quick suggestions (shadow suggestions) Defaults to
true
.
-
setQuickSuggestions
- Parameters:
quickSuggestions
- Enable quick suggestions (shadow suggestions) Defaults totrue
.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
getPasteAs
- Returns:
- Controls support for changing how content is pasted into the editor.
-
setPasteAs
- Parameters:
pasteAs
- Controls support for changing how content is pasted into the editor.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
getScrollbar
- Returns:
- Control the behavior and rendering of the scrollbars.
-
setScrollbar
- Parameters:
scrollbar
- Control the behavior and rendering of the scrollbars.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
getSmartSelect
- Returns:
- Smart select options.
-
setSmartSelect
- Parameters:
smartSelect
- Smart select options.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
getStickyScroll
- Returns:
- Control the behavior of sticky scroll options
-
setStickyScroll
- Parameters:
stickyScroll
- Control the behavior of sticky scroll options- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
getSuggest
- Returns:
- Suggest options.
-
setSuggest
- Parameters:
suggest
- Suggest options.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
getUnicodeHighlight
- Returns:
- Controls the behavior of the unicode highlight feature (by default, ambiguous and invisible characters are highlighted).
-
setUnicodeHighlight
- Parameters:
unicodeHighlight
- Controls the behavior of the unicode highlight feature (by default, ambiguous and invisible characters are highlighted).- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
getAutoClosingOvertype
- Returns:
- Options for typing over closing quotes or brackets.
-
setAutoClosingOvertype
- Parameters:
autoClosingOvertype
- Options for typing over closing quotes or brackets.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
setAutoClosingOvertype
- Parameters:
autoClosingOvertype
- Options for typing over closing quotes or brackets.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
getAutoIndent
- Returns:
- Controls whether the editor should automatically adjust the indentation when users type, paste, move or
indent lines. Defaults to
advanced
.
-
setAutoIndent
- Parameters:
autoIndent
- Controls whether the editor should automatically adjust the indentation when users type, paste, move or indent lines. Defaults toadvanced
.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
setAutoIndent
- Parameters:
autoIndent
- Controls whether the editor should automatically adjust the indentation when users type, paste, move or indent lines. Defaults toadvanced
.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
getAcceptSuggestionOnEnter
- Returns:
- Accept suggestions on ENTER. Defaults to
on
.
-
setAcceptSuggestionOnEnter
- Parameters:
acceptSuggestionOnEnter
- Accept suggestions on ENTER. Defaults toon
.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
setAcceptSuggestionOnEnter
- Parameters:
acceptSuggestionOnEnter
- Accept suggestions on ENTER. Defaults toon
.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
getAccessibilitySupport
- Returns:
- Configure the editor's accessibility support. Defaults to
auto
. It is best to leave this toauto
.
-
setAccessibilitySupport
- Parameters:
accessibilitySupport
- Configure the editor's accessibility support. Defaults toauto
. It is best to leave this toauto
.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
setAccessibilitySupport
- Parameters:
accessibilitySupport
- Configure the editor's accessibility support. Defaults toauto
. It is best to leave this toauto
.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
getAutoClosingBrackets
- Returns:
- Options for auto closing brackets. Defaults to language defined behavior.
-
setAutoClosingBrackets
- Parameters:
autoClosingBrackets
- Options for auto closing brackets. Defaults to language defined behavior.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
setAutoClosingBrackets
- Parameters:
autoClosingBrackets
- Options for auto closing brackets. Defaults to language defined behavior.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
getAutoClosingDelete
- Returns:
- Options for pressing backspace near quotes or bracket pairs.
-
setAutoClosingDelete
- Parameters:
autoClosingDelete
- Options for pressing backspace near quotes or bracket pairs.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
setAutoClosingDelete
- Parameters:
autoClosingDelete
- Options for pressing backspace near quotes or bracket pairs.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
getAutoClosingQuotes
- Returns:
- Options for auto closing quotes. Defaults to language defined behavior.
-
setAutoClosingQuotes
- Parameters:
autoClosingQuotes
- Options for auto closing quotes. Defaults to language defined behavior.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
setAutoClosingQuotes
- Parameters:
autoClosingQuotes
- Options for auto closing quotes. Defaults to language defined behavior.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
getAutoSurround
- Returns:
- Options for auto surrounding. Defaults to always allowing auto surrounding.
-
setAutoSurround
- Parameters:
autoSurround
- Options for auto surrounding. Defaults to always allowing auto surrounding.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
setAutoSurround
- Parameters:
autoSurround
- Options for auto surrounding. Defaults to always allowing auto surrounding.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
getColorDecoratorsActivatedOn
- Returns:
- Controls what is the condition to spawn a color picker from a color decorator.
-
setColorDecoratorsActivatedOn
public EditorOptions setColorDecoratorsActivatedOn(EColorDecoratorsActivatedOnMode colorDecoratorsActivatedOn) - Parameters:
colorDecoratorsActivatedOn
- Controls what is the condition to spawn a color picker from a color decorator.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
setColorDecoratorsActivatedOn
- Parameters:
colorDecoratorsActivatedOn
- Controls what is the condition to spawn a color picker from a color decorator.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
getCursorBlinking
- Returns:
- Control the cursor animation style, possible values are
blink
,smooth
,phase
,expand
andsolid
. Defaults toblink
.
-
setCursorBlinking
- Parameters:
cursorBlinking
- Control the cursor animation style, possible values areblink
,smooth
,phase
,expand
andsolid
. Defaults toblink
.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
setCursorBlinking
- Parameters:
cursorBlinking
- Control the cursor animation style, possible values areblink
,smooth
,phase
,expand
andsolid
. Defaults toblink
.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
getCursorSmoothCaretAnimation
- Returns:
- Enable smooth caret animation. Defaults to
off
.
-
setCursorSmoothCaretAnimation
public EditorOptions setCursorSmoothCaretAnimation(ECursorSmoothCaretAnimation cursorSmoothCaretAnimation) - Parameters:
cursorSmoothCaretAnimation
- Enable smooth caret animation. Defaults tooff
.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
setCursorSmoothCaretAnimation
- Parameters:
cursorSmoothCaretAnimation
- Enable smooth caret animation. Defaults tooff
.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
getCursorStyle
- Returns:
- Control the cursor style, either
block
orline
. Defaults toline
.
-
setCursorStyle
- Parameters:
cursorStyle
- Control the cursor style, eitherblock
orline
. Defaults toline
.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
setCursorStyle
- Parameters:
cursorStyle
- Control the cursor style, eitherblock
orline
. Defaults toline
.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
getCursorSurroundingLinesStyle
- Returns:
- Controls when
cursorSurroundingLines
should be enforced Defaults todefault
,cursorSurroundingLines
is not enforced when cursor position is changed by mouse.
-
setCursorSurroundingLinesStyle
public EditorOptions setCursorSurroundingLinesStyle(ECursorSurroundingLinesStyle cursorSurroundingLinesStyle) - Parameters:
cursorSurroundingLinesStyle
- Controls whencursorSurroundingLines
should be enforced Defaults todefault
,cursorSurroundingLines
is not enforced when cursor position is changed by mouse.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
setCursorSurroundingLinesStyle
- Parameters:
cursorSurroundingLinesStyle
- Controls whencursorSurroundingLines
should be enforced Defaults todefault
,cursorSurroundingLines
is not enforced when cursor position is changed by mouse.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
getExperimentalWhitespaceRendering
- Returns:
- Enable experimental whitespace rendering. Defaults to
svg
.
-
setExperimentalWhitespaceRendering
public EditorOptions setExperimentalWhitespaceRendering(EExperimentalWhitespaceRendering experimentalWhitespaceRendering) - Parameters:
experimentalWhitespaceRendering
- Enable experimental whitespace rendering. Defaults tosvg
.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
setExperimentalWhitespaceRendering
- Parameters:
experimentalWhitespaceRendering
- Enable experimental whitespace rendering. Defaults tosvg
.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
getFoldingStrategy
- Returns:
- Selects the folding strategy. 'auto' uses the strategies contributed for the current document, 'indentation' uses the indentation based folding strategy. Defaults to 'auto'.
-
setFoldingStrategy
- Parameters:
foldingStrategy
- Selects the folding strategy. 'auto' uses the strategies contributed for the current document, 'indentation' uses the indentation based folding strategy. Defaults to 'auto'.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
setFoldingStrategy
- Parameters:
foldingStrategy
- Selects the folding strategy. 'auto' uses the strategies contributed for the current document, 'indentation' uses the indentation based folding strategy. Defaults to 'auto'.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
getFontWeight
- Returns:
- The font weight
-
setFontWeight
- Parameters:
fontWeight
- The font weight- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
setFontWeight
- Parameters:
fontWeight
- The font weight- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
getLineNumbers
- Returns:
- 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
.
-
setLineNumbers
- Parameters:
lineNumbers
- 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 toon
.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
setLineNumbers
- Parameters:
lineNumbers
- 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 toon
.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
getMatchBrackets
- Returns:
- Enable highlighting of matching brackets. Defaults to
always
.
-
setMatchBrackets
- Parameters:
matchBrackets
- Enable highlighting of matching brackets. Defaults toalways
.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
setMatchBrackets
- Parameters:
matchBrackets
- Enable highlighting of matching brackets. Defaults toalways
.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
getMouseStyle
- Returns:
- Control the mouse pointer style, either 'text' or 'default' or 'copy' Defaults to
text
-
setMouseStyle
- Parameters:
mouseStyle
- Control the mouse pointer style, either 'text' or 'default' or 'copy' Defaults totext
- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
setMouseStyle
- Parameters:
mouseStyle
- Control the mouse pointer style, either 'text' or 'default' or 'copy' Defaults totext
- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
getMultiCursorModifier
- Returns:
- The modifier to be used to add multiple cursors with the mouse. Defaults to
alt
-
setMultiCursorModifier
- Parameters:
multiCursorModifier
- The modifier to be used to add multiple cursors with the mouse. Defaults toalt
- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
setMultiCursorModifier
- Parameters:
multiCursorModifier
- The modifier to be used to add multiple cursors with the mouse. Defaults toalt
- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
getMultiCursorPaste
- Returns:
- Configure the behaviour when pasting a text with the line count equal to the cursor count. Defaults to
spread
.
-
setMultiCursorPaste
- Parameters:
multiCursorPaste
- Configure the behaviour when pasting a text with the line count equal to the cursor count. Defaults tospread
.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
setMultiCursorPaste
- Parameters:
multiCursorPaste
- Configure the behaviour when pasting a text with the line count equal to the cursor count. Defaults tospread
.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
getOccurrencesHighlight
- Returns:
- Enable semantic occurrences highlight. Defaults to
singleFile
.
-
setOccurrencesHighlight
- Parameters:
occurrencesHighlight
- Enable semantic occurrences highlight. Defaults tosingleFile
.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
setOccurrencesHighlight
- Parameters:
occurrencesHighlight
- Enable semantic occurrences highlight. Defaults tosingleFile
.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
getPeekWidgetDefaultFocus
- Returns:
- Controls whether to focus the inline editor in the peek widget by default. Defaults to
false
.
-
setPeekWidgetDefaultFocus
- Parameters:
peekWidgetDefaultFocus
- Controls whether to focus the inline editor in the peek widget by default. Defaults tofalse
.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
setPeekWidgetDefaultFocus
- Parameters:
peekWidgetDefaultFocus
- Controls whether to focus the inline editor in the peek widget by default. Defaults tofalse
.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
getRenderFinalNewline
- Returns:
- Render last line number when the file ends with a newline. Defaults to
on
for Windows and macOS anddimmed
for Linux.
-
setRenderFinalNewline
- Parameters:
renderFinalNewline
- Render last line number when the file ends with a newline. Defaults toon
for Windows and macOS anddimmed
for Linux.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
setRenderFinalNewline
- Parameters:
renderFinalNewline
- Render last line number when the file ends with a newline. Defaults toon
for Windows and macOS anddimmed
for Linux.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
getRenderLineHighlight
- Returns:
- Enable rendering of current line highlight. Defaults to
all
.
-
setRenderLineHighlight
- Parameters:
renderLineHighlight
- Enable rendering of current line highlight. Defaults toall
.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
setRenderLineHighlight
- Parameters:
renderLineHighlight
- Enable rendering of current line highlight. Defaults toall
.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
getRenderValidationDecorations
- Returns:
- Should the editor render validation decorations. Defaults to
editable
.
-
setRenderValidationDecorations
public EditorOptions setRenderValidationDecorations(ERenderValidationDecorations renderValidationDecorations) - Parameters:
renderValidationDecorations
- Should the editor render validation decorations. Defaults toeditable
.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
setRenderValidationDecorations
- Parameters:
renderValidationDecorations
- Should the editor render validation decorations. Defaults toeditable
.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
getRenderWhitespace
- Returns:
- Enable rendering of whitespace. Defaults to
none
.
-
setRenderWhitespace
- Parameters:
renderWhitespace
- Enable rendering of whitespace. Defaults tonone
.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
setRenderWhitespace
- Parameters:
renderWhitespace
- Enable rendering of whitespace. Defaults tonone
.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
getShowFoldingControls
- Returns:
- Controls whether the fold actions in the gutter stay always visible or hide unless the mouse is over the
gutter. Defaults to
mouseover
.
-
setShowFoldingControls
- Parameters:
showFoldingControls
- Controls whether the fold actions in the gutter stay always visible or hide unless the mouse is over the gutter. Defaults tomouseover
.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
setShowFoldingControls
- Parameters:
showFoldingControls
- Controls whether the fold actions in the gutter stay always visible or hide unless the mouse is over the gutter. Defaults tomouseover
.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
getSnippetSuggestions
- Returns:
- Enable snippet suggestions. Defaults to 'inline'.
-
setSnippetSuggestions
- Parameters:
snippetSuggestions
- Enable snippet suggestions. Defaults to 'inline'.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
setSnippetSuggestions
- Parameters:
snippetSuggestions
- Enable snippet suggestions. Defaults to 'inline'.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
getSuggestSelection
- Returns:
- Keep peek editors open even when double clicking their content or when hitting Escape. Defaults to
false
.
-
setSuggestSelection
- Parameters:
suggestSelection
- Keep peek editors open even when double clicking their content or when hitting Escape. Defaults tofalse
.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
setSuggestSelection
- Parameters:
suggestSelection
- Keep peek editors open even when double clicking their content or when hitting Escape. Defaults tofalse
.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
getTabCompletion
- Returns:
- Enable tab completion.
-
setTabCompletion
- Parameters:
tabCompletion
- Enable tab completion.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
setTabCompletion
- Parameters:
tabCompletion
- Enable tab completion.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
getUnusualLineTerminators
- Returns:
- Remove unusual line terminators like LINE SEPARATOR (LS), PARAGRAPH SEPARATOR (PS). Defaults to
prompt
.
-
setUnusualLineTerminators
- Parameters:
unusualLineTerminators
- Remove unusual line terminators like LINE SEPARATOR (LS), PARAGRAPH SEPARATOR (PS). Defaults toprompt
.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
setUnusualLineTerminators
- Parameters:
unusualLineTerminators
- Remove unusual line terminators like LINE SEPARATOR (LS), PARAGRAPH SEPARATOR (PS). Defaults toprompt
.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
getWordBreak
- Returns:
- Sets 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.
-
setWordBreak
- Parameters:
wordBreak
- Sets 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.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
setWordBreak
- Parameters:
wordBreak
- Sets 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.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
getWordWrap
- Returns:
- Control the wrapping of the editor. When
wordWrap
=off
, the lines will never wrap. WhenwordWrap
=on
, the lines will wrap at the viewport width. WhenwordWrap
=wordWrapColumn
, the lines will wrap atwordWrapColumn
. WhenwordWrap
=bounded
, the lines will wrap atmin(viewport width, wordWrapColumn)
. Defaults tooff
.
-
setWordWrap
- Parameters:
wordWrap
- Control the wrapping of the editor. WhenwordWrap
=off
, the lines will never wrap. WhenwordWrap
=on
, the lines will wrap at the viewport width. WhenwordWrap
=wordWrapColumn
, the lines will wrap atwordWrapColumn
. WhenwordWrap
=bounded
, the lines will wrap atmin(viewport width, wordWrapColumn)
. Defaults tooff
.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
setWordWrap
- Parameters:
wordWrap
- Control the wrapping of the editor. WhenwordWrap
=off
, the lines will never wrap. WhenwordWrap
=on
, the lines will wrap at the viewport width. WhenwordWrap
=wordWrapColumn
, the lines will wrap atwordWrapColumn
. WhenwordWrap
=bounded
, the lines will wrap atmin(viewport width, wordWrapColumn)
. Defaults tooff
.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
getWordWrapOverride1
- Returns:
- Override the
wordWrap
setting.
-
setWordWrapOverride1
- Parameters:
wordWrapOverride1
- Override thewordWrap
setting.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
setWordWrapOverride1
- Parameters:
wordWrapOverride1
- Override thewordWrap
setting.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
getWordWrapOverride2
- Returns:
- Override the
wordWrapOverride1
setting.
-
setWordWrapOverride2
- Parameters:
wordWrapOverride2
- Override thewordWrapOverride1
setting.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
setWordWrapOverride2
- Parameters:
wordWrapOverride2
- Override thewordWrapOverride1
setting.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
getWrappingIndent
- Returns:
- Control indentation of wrapped lines. Can be:
none
,same
,indent
ordeepIndent
. Defaults tosame
in vscode and tonone
in monaco-editor.
-
setWrappingIndent
- Parameters:
wrappingIndent
- Control indentation of wrapped lines. Can be:none
,same
,indent
ordeepIndent
. Defaults tosame
in vscode and tonone
in monaco-editor.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
setWrappingIndent
- Parameters:
wrappingIndent
- Control indentation of wrapped lines. Can be:none
,same
,indent
ordeepIndent
. Defaults tosame
in vscode and tonone
in monaco-editor.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
getWrappingStrategy
- Returns:
- Controls the wrapping strategy to use. Defaults to
simple
.
-
setWrappingStrategy
- Parameters:
wrappingStrategy
- Controls the wrapping strategy to use. Defaults tosimple
.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
setWrappingStrategy
- Parameters:
wrappingStrategy
- Controls the wrapping strategy to use. Defaults tosimple
.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
getRulers
public org.primefaces.shaded.json.JSONArray getRulers()- Returns:
- Render vertical lines at the specified columns. Defaults to empty array.
-
setRulers
- Parameters:
rulers
- Render vertical lines at the specified columns. Defaults to empty array.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
addRuler
- Returns:
- Render vertical lines at the specified columns. Defaults to empty array.
-
setRulers
- Parameters:
rulers
- Render vertical lines at the specified columns. Defaults to empty array.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
isAcceptSuggestionOnCommitCharacter
- Returns:
- Accept suggestions on provider defined characters. Defaults to
true
.
-
setAcceptSuggestionOnCommitCharacter
public EditorOptions setAcceptSuggestionOnCommitCharacter(Boolean acceptSuggestionOnCommitCharacter) - Parameters:
acceptSuggestionOnCommitCharacter
- Accept suggestions on provider defined characters. Defaults totrue
.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
isAutoDetectHighContrast
- Returns:
- If enabled, will automatically change to high contrast theme if the OS is using a high contrast theme.
Defaults to
true
.
-
setAutoDetectHighContrast
- Parameters:
autoDetectHighContrast
- If enabled, will automatically change to high contrast theme if the OS is using a high contrast theme. Defaults totrue
.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
isAutomaticLayout
- Returns:
- 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
.
-
setAutomaticLayout
- Parameters:
automaticLayout
- 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 tofalse
.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
isCodeLens
- Returns:
- Show code lens Defaults to
true
.
-
setCodeLens
- Parameters:
codeLens
- Show code lens Defaults totrue
.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
isColorDecorators
- Returns:
- Enable inline color decorators and color picker rendering.
-
setColorDecorators
- Parameters:
colorDecorators
- Enable inline color decorators and color picker rendering.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
isColorDecoratorsLimit
- Returns:
- Controls the max number of color decorators that can be rendered in an editor at once.
-
setColorDecoratorsLimit
- Parameters:
colorDecoratorsLimit
- Controls the max number of color decorators that can be rendered in an editor at once.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
isColumnSelection
- Returns:
- Enable that the selection with the mouse and keys is doing column selection. Defaults to
false
.
-
setColumnSelection
- Parameters:
columnSelection
- Enable that the selection with the mouse and keys is doing column selection. Defaults tofalse
.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
isCopyWithSyntaxHighlighting
- Returns:
- Syntax highlighting is copied.
-
setCopyWithSyntaxHighlighting
- Parameters:
copyWithSyntaxHighlighting
- Syntax highlighting is copied.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
isDefaultColorDecorators
- Returns:
- Controls whether to use default color decorations or not using the default document color provider
-
setDefaultColorDecorators
- Parameters:
defaultColorDecorators
- Controls whether to use default color decorations or not using the default document color provider- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
isDefinitionLinkOpensInPeek
- Returns:
- Controls whether the definition link opens element in the peek widget. Defaults to
false
.
-
setDefinitionLinkOpensInPeek
- Parameters:
definitionLinkOpensInPeek
- Controls whether the definition link opens element in the peek widget. Defaults tofalse
.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
isDisableLayerHinting
- Returns:
- 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
.
-
setDisableLayerHinting
- Parameters:
disableLayerHinting
- 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 tofalse
.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
isDisableMonospaceOptimizations
- Returns:
- Disable the optimizations for monospace fonts. Defaults to
false
.
-
setDisableMonospaceOptimizations
- Parameters:
disableMonospaceOptimizations
- Disable the optimizations for monospace fonts. Defaults tofalse
.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
isDragAndDrop
- Returns:
- Controls if the editor should allow to move selections via drag and drop. Defaults to
false
.
-
setDragAndDrop
- Parameters:
dragAndDrop
- Controls if the editor should allow to move selections via drag and drop. Defaults tofalse
.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
isEmptySelectionClipboard
- Returns:
- Copying without a selection copies the current line
-
setEmptySelectionClipboard
- Parameters:
emptySelectionClipboard
- Copying without a selection copies the current line- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
getExperimentalInlineEdit
-
setExperimentalInlineEdit
-
isFixedOverflowWidgets
- Returns:
- Display overflow widgets as
fixed
. Defaults tofalse
-
setFixedOverflowWidgets
- Parameters:
fixedOverflowWidgets
- Display overflow widgets asfixed
. Defaults tofalse
- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
isFolding
- Returns:
- Enable code folding. Defaults to
true
.
-
setFolding
- Parameters:
folding
- Enable code folding. Defaults totrue
.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
isFoldingHighlight
- Returns:
- Enable highlight for folded regions. Defaults to
true
.
-
setFoldingHighlight
- Parameters:
foldingHighlight
- Enable highlight for folded regions. Defaults totrue
.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
isFoldingImportsByDefault
- Returns:
- Auto fold imports folding regions. Defaults to
true
.
-
setFoldingImportsByDefault
- Parameters:
foldingImportsByDefault
- Auto fold imports folding regions. Defaults totrue
.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
isFontLigatures
-
getFontLigatures
-
setFontLigatures
-
setFontLigatures
-
isFontVariations
-
getFontVariations
-
setFontVariations
-
setFontVariations
-
isFormatOnPaste
- Returns:
- Enable format on paste. Defaults to
false
-
setFormatOnPaste
- Parameters:
formatOnPaste
- Enable format on paste. Defaults tofalse
- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
isFormatOnType
- Returns:
- Enable format on type. Defaults to
false
-
setFormatOnType
- Parameters:
formatOnType
- Enable format on type. Defaults tofalse
- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
isGlyphMargin
- Returns:
- Enable the rendering of the glyph margin. Defaults to
true
. in vscode and tofalse
in monaco-editor
-
setGlyphMargin
- Parameters:
glyphMargin
- Enable the rendering of the glyph margin. Defaults totrue
. in vscode and tofalse
in monaco-editor- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
isHideCursorInOverviewRuler
- Returns:
- Should the cursor be hidden in the overview ruler. Defaults to
false
-
setHideCursorInOverviewRuler
- Parameters:
hideCursorInOverviewRuler
- Should the cursor be hidden in the overview ruler. Defaults tofalse
- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
isInlineCompletionsAccessibilityVerbose
- Returns:
- Controls whether the accessibility hint should be provided to screen reader users when an inline completion is shown.
-
setInlineCompletionsAccessibilityVerbose
public EditorOptions setInlineCompletionsAccessibilityVerbose(Boolean inlineCompletionsAccessibilityVerbose) - Parameters:
inlineCompletionsAccessibilityVerbose
- Controls whether the accessibility hint should be provided to screen reader users when an inline completion is shown.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
isLargeFileOptimizations
- Returns:
- Special handling for large files to disable certain memory intensive features. Defaults to
true
.
-
setLargeFileOptimizations
- Parameters:
largeFileOptimizations
- Special handling for large files to disable certain memory intensive features. Defaults totrue
.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
isLinkedEditing
- Returns:
- Enables linked editing. Defaults to
false
.
-
setLinkedEditing
- Parameters:
linkedEditing
- Enables linked editing. Defaults tofalse
.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
isLinks
- Returns:
- Enable detecting links and making them clickable. Defaults to
true
.
-
setLinks
- Parameters:
links
- Enable detecting links and making them clickable. Defaults totrue
.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
isMatchOnWordStartOnly
- Returns:
- Controls whether suggestions allow matches in the middle of the word instead of only at the beginning
-
setMatchOnWordStartOnly
- Parameters:
matchOnWordStartOnly
- Controls whether suggestions allow matches in the middle of the word instead of only at the beginning- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
isMouseWheelZoom
- Returns:
- Zoom the font in the editor when using the mouse wheel in combination with holding Ctrl. Defaults to
false
-
setMouseWheelZoom
- Parameters:
mouseWheelZoom
- Zoom the font in the editor when using the mouse wheel in combination with holding Ctrl. Defaults tofalse
- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
isMultiCursorMergeOverlapping
- Returns:
- Merge overlapping selections. Defaults to
true
.
-
setMultiCursorMergeOverlapping
- Parameters:
multiCursorMergeOverlapping
- Merge overlapping selections. Defaults totrue
.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
isOverviewRulerBorder
- Returns:
- Controls if a border should be drawn around the overview ruler. Defaults to
true
.
-
setOverviewRulerBorder
- Parameters:
overviewRulerBorder
- Controls if a border should be drawn around the overview ruler. Defaults totrue
.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
isReadOnly
- Returns:
- Should the editor be read only. Defaults to
false
-
setReadOnly
- Parameters:
readOnly
- Should the editor be read only. Defaults tofalse
- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
isRenameOnType
Deprecated.- Returns:
- Deprecated, use
invalid reference
linkedEditing
-
setRenameOnType
Deprecated.- Parameters:
renameOnType
- Deprecated, useinvalid reference
linkedEditing
- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
isRenderControlCharacters
- Returns:
- Enable rendering of control characters. Defaults to
true
.
-
setRenderControlCharacters
- Parameters:
renderControlCharacters
- Enable rendering of control characters. Defaults totrue
.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
isRenderLineHighlightOnlyWhenFocus
- Returns:
- Control if the current line highlight should be rendered only the editor is focused. Defaults to
false
.
-
setRenderLineHighlightOnlyWhenFocus
- Parameters:
renderLineHighlightOnlyWhenFocus
- Control if the current line highlight should be rendered only the editor is focused. Defaults tofalse
.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
isRoundedSelection
- Returns:
- Render the editor selection with rounded borders. Defaults to
true
.
-
setRoundedSelection
- Parameters:
roundedSelection
- Render the editor selection with rounded borders. Defaults totrue
.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
isScreenReaderAnnounceInlineSuggestion
- Returns:
- Control whether a screen reader announces inline suggestion content immediately.
-
setScreenReaderAnnounceInlineSuggestion
public EditorOptions setScreenReaderAnnounceInlineSuggestion(Boolean screenReaderAnnounceInlineSuggestion) - Parameters:
screenReaderAnnounceInlineSuggestion
- Control whether a screen reader announces inline suggestion content immediately.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
isScrollBeyondLastLine
- Returns:
- Enable that scrolling can go one screen size after the last line. Defaults to
true
.
-
setScrollBeyondLastLine
- Parameters:
scrollBeyondLastLine
- Enable that scrolling can go one screen size after the last line. Defaults totrue
.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
isScrollPredominantAxis
- Returns:
- Enable that the editor scrolls only the predominant axis. Prevents horizontal drift when scrolling
vertically on a trackpad. Defaults to
true
.}
-
setScrollPredominantAxis
- Parameters:
scrollPredominantAxis
- Enable that the editor scrolls only the predominant axis. Prevents horizontal drift when scrolling vertically on a trackpad. Defaults totrue
.}- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
isSelectOnLineNumbers
- Returns:
- Should the corresponding line be selected when clicking on the line number? Defaults to
true
.
-
setSelectOnLineNumbers
- Parameters:
selectOnLineNumbers
- Should the corresponding line be selected when clicking on the line number? Defaults totrue
.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
isSelectionClipboard
- Returns:
- Enable Linux primary clipboard. Defaults to
true
.
-
setSelectionClipboard
- Parameters:
selectionClipboard
- Enable Linux primary clipboard. Defaults totrue
.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
isSelectionHighlight
- Returns:
- Enable selection highlight. Defaults to
true
.
-
setSelectionHighlight
- Parameters:
selectionHighlight
- Enable selection highlight. Defaults totrue
.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
isShowDeprecated
- Returns:
- Controls strikethrough deprecated variables.
-
setShowDeprecated
- Parameters:
showDeprecated
- Controls strikethrough deprecated variables.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
isShowUnused
- Returns:
- Controls fading out of unused variables
-
setShowUnused
- Parameters:
showUnused
- Controls fading out of unused variables- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
isSmoothScrolling
- Returns:
- Enable that the editor animates scrolling to a position. Defaults to
false
-
setSmoothScrolling
- Parameters:
smoothScrolling
- Enable that the editor animates scrolling to a position. Defaults tofalse
- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
isStablePeek
- Returns:
- Keep peek editors open even when double clicking their content or when hitting Escape. Defaults to
false
-
setStablePeek
- Parameters:
stablePeek
- Keep peek editors open even when double clicking their content or when hitting Escape. Defaults tofalse
- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
isSuggestOnTriggerCharacters
- Returns:
- Enable the suggestion box to pop-up on trigger characters. Defaults to
true
.
-
setSuggestOnTriggerCharacters
- Parameters:
suggestOnTriggerCharacters
- Enable the suggestion box to pop-up on trigger characters. Defaults totrue
.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
isTabFocusMode
- Returns:
- Controls whether the editor receives tabs or defers them to the workbench for navigation.
-
setTabFocusMode
- Parameters:
tabFocusMode
- Controls whether the editor receives tabs or defers them to the workbench for navigation.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
isUnfoldOnClickAfterEndOfLine
- Returns:
- Controls whether clicking on the empty content after a folded line will unfold the line. Defaults to
false
.
-
setUnfoldOnClickAfterEndOfLine
- Parameters:
unfoldOnClickAfterEndOfLine
- Controls whether clicking on the empty content after a folded line will unfold the line. Defaults tofalse
.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
isUseShadowDOM
- Returns:
- Control if the editor should use shadow DOM.
-
setUseShadowDOM
- Parameters:
useShadowDOM
- Control if the editor should use shadow DOM.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
isUseTabStops
- Returns:
- Inserting and deleting whitespace follows tab stops.
-
setUseTabStops
- Parameters:
useTabStops
- Inserting and deleting whitespace follows tab stops.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
isWordWrapMinified
- Returns:
- Force word wrapping when the text appears to be of a minified/generated file. Defaults to
true
.
-
setWordWrapMinified
- Parameters:
wordWrapMinified
- Force word wrapping when the text appears to be of a minified/generated file. Defaults totrue
.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
getAccessibilityPageSize
- Returns:
- Controls the number of lines in the editor that can be read out by a screen reader.
-
setAccessibilityPageSize
- Parameters:
accessibilityPageSize
- Controls the number of lines in the editor that can be read out by a screen reader.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
getCodeActionsOnSaveTimeout
- Returns:
- Timeout for running code actions on save.
-
setCodeActionsOnSaveTimeout
- Parameters:
codeActionsOnSaveTimeout
- Timeout for running code actions on save.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
getCodeLensFontSize
- Returns:
- Code lens font size. Default to 90% of the editor font size.
-
setCodeLensFontSize
- Parameters:
codeLensFontSize
- Code lens font size. Default to 90% of the editor font size.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
getCursorSurroundingLines
- Returns:
- Controls the minimal number of visible leading and trailing lines surrounding the cursor. Defaults to
0
.
-
setCursorSurroundingLines
- Parameters:
cursorSurroundingLines
- Controls the minimal number of visible leading and trailing lines surrounding the cursor. Defaults to0
.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
getCursorWidth
- Returns:
- Control the width of the cursor when cursorStyle is set to
line
-
setCursorWidth
- Parameters:
cursorWidth
- Control the width of the cursor when cursorStyle is set toline
- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
getFastScrollSensitivity
- Returns:
- Fast scrolling multiplier speed when pressing
Alt
Defaults to5
.
-
setFastScrollSensitivity
- Parameters:
fastScrollSensitivity
- Fast scrolling multiplier speed when pressingAlt
Defaults to5
.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
getFoldingMaximumRegions
- Returns:
- Maximum number of foldable regions. Defaults to
5000
.
-
setFoldingMaximumRegions
- Parameters:
foldingMaximumRegions
- Maximum number of foldable regions. Defaults to5000
.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
getFontSize
- Returns:
- The font size
-
setFontSize
- Parameters:
fontSize
- The font size- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
isInDiffEditor
- Returns:
- This editor is used inside a diff editor.
-
setInDiffEditor
- Parameters:
inDiffEditor
- This editor is used inside a diff editor.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
isStickyTabStops
- Returns:
- Emulate selection behaviour of tab characters when using spaces for indentation. This means selection will stick to tab stops.
-
setStickyTabStops
- Parameters:
stickyTabStops
- Emulate selection behaviour of tab characters when using spaces for indentation. This means selection will stick to tab stops.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
getLetterSpacing
- Returns:
- The letter spacing
-
setLetterSpacing
- Parameters:
letterSpacing
- The letter spacing- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
getLineHeight
- Returns:
- The line height
-
setLineHeight
- Parameters:
lineHeight
- The line height- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
getLineNumbersMinChars
- Returns:
- 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
.
-
setLineNumbersMinChars
- Parameters:
lineNumbersMinChars
- 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 toon
.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
getMouseWheelScrollSensitivity
- Returns:
- A multiplier to be used on the
deltaX
anddeltaY
of mouse wheel scroll events. Defaults to1
.
-
setMouseWheelScrollSensitivity
- Parameters:
mouseWheelScrollSensitivity
- A multiplier to be used on thedeltaX
anddeltaY
of mouse wheel scroll events. Defaults to1
.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
getMultiCursorLimit
- Returns:
- Controls the max number of text cursors that can be in an active editor at once.
-
setMultiCursorLimit
- Parameters:
multiCursorLimit
- Controls the max number of text cursors that can be in an active editor at once.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
getOverviewRulerLanes
- Returns:
- The number of vertical lanes the overview ruler should render. Defaults to
3
.
-
setOverviewRulerLanes
- Parameters:
overviewRulerLanes
- The number of vertical lanes the overview ruler should render. Defaults to3
.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
getQuickSuggestionsDelay
- Returns:
- Quick suggestions show delay (in ms) Defaults to
10
(ms)
-
setQuickSuggestionsDelay
- Parameters:
quickSuggestionsDelay
- Quick suggestions show delay (in ms) Defaults to10
(ms)- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
getRevealHorizontalRightPadding
- Returns:
- 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).
-
setRevealHorizontalRightPadding
- Parameters:
revealHorizontalRightPadding
- 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 to30
(px).- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
getScrollBeyondLastColumn
- Returns:
- Enable that scrolling can go beyond the last column by a number of columns. Defaults to
5
.
-
setScrollBeyondLastColumn
- Parameters:
scrollBeyondLastColumn
- Enable that scrolling can go beyond the last column by a number of columns. Defaults to5
.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
getStopRenderingLineAfter
- Returns:
- Performance guard: Stop rendering a line after x characters. Defaults to
10000
. Use-1
to never stop rendering
-
setStopRenderingLineAfter
- Parameters:
stopRenderingLineAfter
- Performance guard: Stop rendering a line after x characters. Defaults to10000
. Use-1
to never stop rendering- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
getSuggestFontSize
- Returns:
- The font size for the suggest widget. Defaults to the editor font size.
-
setSuggestFontSize
- Parameters:
suggestFontSize
- The font size for the suggest widget. Defaults to the editor font size.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
getSuggestLineHeight
- Returns:
- The line height for the suggest widget. Defaults to the editor line height.
-
setSuggestLineHeight
- Parameters:
suggestLineHeight
- The line height for the suggest widget. Defaults to the editor line height.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
getTabIndex
- Returns:
- The
tabindex
property of the editor's textarea.
-
setTabIndex
- Parameters:
tabIndex
- Thetabindex
property of the editor's textarea.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
getWordWrapColumn
- Returns:
- Control the wrapping of the editor. When
wordWrap
=off
, the lines will never wrap. WhenwordWrap
=on
, the lines will wrap at the viewport width. WhenwordWrap
=wordWrapColumn
, the lines will wrap at wordWrapColumn. WhenwordWrap
=bounded
, the lines will wrap at min(viewport width, wordWrapColumn). Defaults to80
.
-
setWordWrapColumn
- Parameters:
wordWrapColumn
- Control the wrapping of the editor. WhenwordWrap
=off
, the lines will never wrap. WhenwordWrap
=on
, the lines will wrap at the viewport width. WhenwordWrap
=wordWrapColumn
, the lines will wrap at wordWrapColumn. WhenwordWrap
=bounded
, the lines will wrap at min(viewport width, wordWrapColumn). Defaults to80
.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
getLineDecorationsWidth
-
setLineDecorationsWidth
-
setLineDecorationsWidth
-
getAriaLabel
- Returns:
- The aria label for the editor's textarea (when it is focused).
-
setAriaLabel
- Parameters:
ariaLabel
- The aria label for the editor's textarea (when it is focused).- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
getCodeLensFontFamily
- Returns:
- Code lens font family. Defaults to editor font family.
-
setCodeLensFontFamily
- Parameters:
codeLensFontFamily
- Code lens font family. Defaults to editor font family.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
getExtraEditorClassName
- Returns:
- Class name to be added to the editor.
-
setExtraEditorClassName
- Parameters:
extraEditorClassName
- Class name to be added to the editor.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
getFontFamily
- Returns:
- The font family
-
setFontFamily
- Parameters:
fontFamily
- The font family- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
getPlaceholder
- Returns:
- Sets a placeholder for the editor. If set, the placeholder is shown if the editor is empty.
-
setPlaceholder
- Parameters:
placeholder
- Sets a placeholder for the editor. If set, the placeholder is shown if the editor is empty.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
getWordSegmenterLocales
public org.primefaces.shaded.json.JSONArray getWordSegmenterLocales()- Returns:
- Locales used for segmenting lines into words when doing word related navigations or operations.<p>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
-
setWordSegmenterLocales
public EditorOptions setWordSegmenterLocales(org.primefaces.shaded.json.JSONArray wordSegmenterLocales) - Parameters:
wordSegmenterLocales
- Locales used for segmenting lines into words when doing word related navigations or operations.<p>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- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
addWordSegmenterLocale
- Returns:
- Locales used for segmenting lines into words when doing word related navigations or operations.<p>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
-
setWordSegmenterLocales
- Parameters:
wordSegmenterLocales
- Locales used for segmenting lines into words when doing word related navigations or operations.<p>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- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
getWordSeparators
- Returns:
- A string containing the word separators used when doing word navigation. Defaults to `~!@#$%^&*()-=+[{]}|;:'",.<>/?
-
setWordSeparators
- Parameters:
wordSeparators
- A string containing the word separators used when doing word navigation. Defaults to `~!@#$%^&*()-=+[{]}|;:'",.<>/?- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
getWordWrapBreakAfterCharacters
- Returns:
- Configure word wrapping characters. A break will be introduced after these characters. Defaults to tab stops, closing brackets and parentheses, and several other Unicode punctuation marks.
-
setWordWrapBreakAfterCharacters
- Parameters:
wordWrapBreakAfterCharacters
- Configure word wrapping characters. A break will be introduced after these characters. Defaults to tab stops, closing brackets and parentheses, and several other Unicode punctuation marks.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
getWordWrapBreakBeforeCharacters
- Returns:
- Configure word wrapping characters. A break will be introduced before these characters. Defaults to opening brackets and parentheses, and several other Unicode punctuation marks.
-
setWordWrapBreakBeforeCharacters
- Parameters:
wordWrapBreakBeforeCharacters
- Configure word wrapping characters. A break will be introduced before these characters. Defaults to opening brackets and parentheses, and several other Unicode punctuation marks.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
getDimension
- Returns:
- The initial editor dimension (to avoid measuring the container).
-
setDimension
- Parameters:
dimension
- The initial editor dimension (to avoid measuring the container).- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
getLanguage
- Returns:
- The initial language of the auto created model in the editor. To not create automatically a model, use
model: null
.
-
setLanguage
- Parameters:
language
- The initial language of the auto created model in the editor. To not create automatically a model, usemodel: null
.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
setLanguage
- Parameters:
language
- The initial language of the auto created model in the editor. To not create automatically a model, usemodel: null
.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
getTheme
- Returns:
- 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 viamonaco.editor.defineTheme
. To switch a theme, usemonaco.editor.setTheme
-
setTheme
- Parameters:
theme
- 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 viamonaco.editor.defineTheme
. To switch a theme, usemonaco.editor.setTheme
- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
setTheme
- Parameters:
theme
- 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 viamonaco.editor.defineTheme
. To switch a theme, usemonaco.editor.setTheme
- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
getWordBasedSuggestions
- Returns:
- Controls whether completions should be computed based on words in the document. Defaults to
currentDocument
.
-
setWordBasedSuggestions
- Parameters:
wordBasedSuggestions
- Controls whether completions should be computed based on words in the document. Defaults tocurrentDocument
.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
setWordBasedSuggestions
- Parameters:
wordBasedSuggestions
- Controls whether completions should be computed based on words in the document. Defaults tocurrentDocument
.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
getSemanticHighlightingEnabled
- Returns:
- Controls whether the semanticHighlighting is shown for the languages that support it.
true
: Semantic highlighting is enabled for all themesfalse
: Semantic highlighting is disabled for all themes.configuredByTheme
: Semantic highlighting is controlled by the current color theme'ssemanticHighlighting
setting. Defaults toconfiguredByTheme
.
-
setSemanticHighlightingEnabled
public EditorOptions setSemanticHighlightingEnabled(ESemanticHighlightingEnabled semanticHighlightingEnabled) - Parameters:
semanticHighlightingEnabled
- Controls whether the semanticHighlighting is shown for the languages that support it.true
: Semantic highlighting is enabled for all themesfalse
: Semantic highlighting is disabled for all themes.configuredByTheme
: Semantic highlighting is controlled by the current color theme'ssemanticHighlighting
setting. Defaults toconfiguredByTheme
.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
setSemanticHighlightingEnabled
- Parameters:
semanticHighlightingEnabled
- Controls whether the semanticHighlighting is shown for the languages that support it.true
: Semantic highlighting is enabled for all themesfalse
: Semantic highlighting is disabled for all themes.configuredByTheme
: Semantic highlighting is controlled by the current color theme'ssemanticHighlighting
setting. Defaults toconfiguredByTheme
.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
isDetectIndentation
- Returns:
- Controls whether
tabSize
andinsertSpaces
will be automatically detected when a file is opened based on the file contents. Defaults totrue
.
-
setDetectIndentation
- Parameters:
detectIndentation
- Controls whethertabSize
andinsertSpaces
will be automatically detected when a file is opened based on the file contents. Defaults totrue
.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
isInsertSpaces
- Returns:
- Insert spaces when pressing
Tab
. This setting is overridden based on the file contents whendetectIndentation
is on. Defaults totrue
.
-
setInsertSpaces
- Parameters:
insertSpaces
- Insert spaces when pressingTab
. This setting is overridden based on the file contents whendetectIndentation
is on. Defaults totrue
.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
isTrimAutoWhitespace
- Returns:
- Remove trailing auto inserted whitespace. Defaults to
true
.
-
setTrimAutoWhitespace
- Parameters:
trimAutoWhitespace
- Remove trailing auto inserted whitespace. Defaults totrue
.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
isWordBasedSuggestionsOnlySameLanguage
- Returns:
- Controls whether word based completions should be included from opened documents of the same language or any language.
-
setWordBasedSuggestionsOnlySameLanguage
public EditorOptions setWordBasedSuggestionsOnlySameLanguage(Boolean wordBasedSuggestionsOnlySameLanguage) - Parameters:
wordBasedSuggestionsOnlySameLanguage
- Controls whether word based completions should be included from opened documents of the same language or any language.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
getMaxTokenizationLineLength
- Returns:
- Lines above this length will not be tokenized for performance reasons. Defaults to
20000
.
-
setMaxTokenizationLineLength
- Parameters:
maxTokenizationLineLength
- Lines above this length will not be tokenized for performance reasons. Defaults to20000
.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
getTabSize
- Returns:
- The number of spaces a tab is equal to. This setting is overridden based on the file contents when
detectIndentation
is on. Defaults to4
.
-
setTabSize
- Parameters:
tabSize
- The number of spaces a tab is equal to. This setting is overridden based on the file contents whendetectIndentation
is on. Defaults to4
.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
getAccessibilityHelpUrl
- Returns:
- A URL to open when Ctrl+H (Windows and Linux) or Cmd+H (OSX) is pressed in the accessibility help dialog in the editor.
-
setAccessibilityHelpUrl
- Parameters:
accessibilityHelpUrl
- A URL to open when Ctrl+H (Windows and Linux) or Cmd+H (OSX) is pressed in the accessibility help dialog in the editor.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-