public class EditorOptions
extends org.primefaces.shaded.json.JSONObject
implements java.io.Serializable
| Constructor and Description |
|---|
EditorOptions() |
accumulate, append, doubleToString, entrySet, get, getBigDecimal, getBigInteger, getBoolean, getDouble, getEnum, getFloat, getInt, getJSONArray, getJSONObject, getLong, getNames, getNames, getNumber, getString, has, increment, isDecimalNotation, isEmpty, isNull, keys, keySet, length, names, numberToString, opt, optBigDecimal, optBigInteger, optBoolean, optBoolean, optDouble, optDouble, optEnum, optEnum, optFloat, optFloat, optInt, optInt, optJSONArray, optJSONObject, optLong, optLong, 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, writepublic EditorCommentsOptions getComments()
public EditorOptions setComments(EditorCommentsOptions comments)
comments - Control the behaviour of comments in the editor.public EditorDimension getDimension()
public EditorOptions setDimension(EditorDimension dimension)
dimension - The initial editor dimension (to avoid measuring the container).public EditorFindOptions getFind()
public EditorOptions setFind(EditorFindOptions find)
find - Control the behavior of the find widget.public EditorGotoLocationOptions getGotoLocation()
public EditorOptions setGotoLocation(EditorGotoLocationOptions gotoLocation)
public EditorHoverOptions getHover()
public EditorOptions setHover(EditorHoverOptions hover)
hover - Configure the editor's hover.public EditorLightbulbOptions getLightbulb()
public EditorOptions setLightbulb(EditorLightbulbOptions lightbulb)
lightbulb - Control the behavior and rendering of the code action lightbulb.public EditorMinimapOptions getMinimap()
public EditorOptions setMinimap(EditorMinimapOptions minimap)
minimap - Control the behavior and rendering of the minimap.public EditorPaddingOptions getPadding()
public EditorOptions setPadding(EditorPaddingOptions padding)
padding - Controls the spacing around the editor.public java.lang.Boolean isParameterHints()
public EditorOptions setParameterHints(java.lang.Boolean parameterHints)
parameterHints - Parameter hint options.public EditorQuickSuggestionsOptions getQuickSuggestions()
true.public EditorOptions setQuickSuggestions(EditorQuickSuggestionsOptions quickSuggestions)
quickSuggestions - Enable quick suggestions (shadow suggestions) Defaults to true.public EditorScrollbarOptions getScrollbar()
public EditorOptions setScrollbar(EditorScrollbarOptions scrollbar)
scrollbar - Control the behavior and rendering of the scrollbars.public EditorSuggestOptions getSuggest()
public EditorOptions setSuggest(EditorSuggestOptions suggest)
suggest - Suggest options.public java.lang.String getAutoClosingOvertype()
public EditorOptions setAutoClosingOvertype(EAutoClosingOvertype autoClosingOvertype)
autoClosingOvertype - Options for typing over closing quotes or brackets.public EditorOptions setAutoClosingOvertype(java.lang.String autoClosingOvertype)
public java.lang.String getAutoIndent()
advanced.public EditorOptions setAutoIndent(EAutoIndent autoIndent)
autoIndent - Controls whether the editor should automatically adjust the indentation when users type, paste,
move or indent lines. Defaults to advanced.public EditorOptions setAutoIndent(java.lang.String autoIndent)
public java.lang.String getAcceptSuggestionOnEnter()
on.public EditorOptions setAcceptSuggestionOnEnter(EAcceptSuggestionOnEnter acceptSuggestionOnEnter)
acceptSuggestionOnEnter - Accept suggestions on ENTER. Defaults to on.public EditorOptions setAcceptSuggestionOnEnter(java.lang.String acceptSuggestionOnEnter)
public java.lang.String getAccessibilitySupport()
auto. It is best to leave this to
auto.public EditorOptions setAccessibilitySupport(EAccessibilitySupport accessibilitySupport)
accessibilitySupport - Configure the editor's accessibility support. Defaults to auto. It is best to
leave this to auto.public EditorOptions setAccessibilitySupport(java.lang.String accessibilitySupport)
public java.lang.Boolean isAutoClosingBrackets()
public EditorOptions setAutoClosingBrackets(java.lang.Boolean autoClosingBrackets)
autoClosingBrackets - Options for auto closing brackets. Defaults to language defined behavior.public java.lang.String getAutoClosingQuotes()
public EditorOptions setAutoClosingQuotes(EAutoClosingQuotes autoClosingQuotes)
autoClosingQuotes - Options for auto closing quotes. Defaults to language defined behavior.public EditorOptions setAutoClosingQuotes(java.lang.String autoClosingQuotes)
public java.lang.String getAutoSurround()
public EditorOptions setAutoSurround(EAutoSurround autoSurround)
autoSurround - Options for auto surrounding. Defaults to always allowing auto surrounding.public EditorOptions setAutoSurround(java.lang.String autoSurround)
public java.lang.String getCursorBlinking()
blink, smooth, phase,
expand and solid. Defaults to blink.public EditorOptions setCursorBlinking(ECursorBlinking cursorBlinking)
cursorBlinking - Control the cursor animation style, possible values are blink, smooth,
phase, expand and solid. Defaults to blink.public EditorOptions setCursorBlinking(java.lang.String cursorBlinking)
public java.lang.String getCursorStyle()
block or line. Defaults to line.public EditorOptions setCursorStyle(ECursorStyle cursorStyle)
cursorStyle - Control the cursor style, either block or line. Defaults to line.public EditorOptions setCursorStyle(java.lang.String cursorStyle)
public java.lang.String getCursorSurroundingLinesStyle()
cursorSurroundingLines should be enforced Defaults to default, cursorSurroundingLines is not enforced when cursor position is changed by mouse.public EditorOptions setCursorSurroundingLinesStyle(ECursorSurroundingLinesStyle cursorSurroundingLinesStyle)
cursorSurroundingLinesStyle - Controls when cursorSurroundingLines should be enforced Defaults to
default, cursorSurroundingLines is not enforced when cursor position is changed by mouse.public EditorOptions setCursorSurroundingLinesStyle(java.lang.String cursorSurroundingLinesStyle)
public java.lang.String getFoldingStrategy()
public EditorOptions setFoldingStrategy(EFoldingStrategy foldingStrategy)
foldingStrategy - Selects the folding strategy. 'auto' uses the strategies contributed for the current
document, 'indentation' uses the indentation based folding strategy. Defaults to 'auto'.public EditorOptions setFoldingStrategy(java.lang.String foldingStrategy)
public java.lang.String getFontWeight()
public EditorOptions setFontWeight(EFontWeight fontWeight)
fontWeight - The font weightpublic EditorOptions setFontWeight(java.lang.String fontWeight)
public java.lang.String getLanguage()
public EditorOptions setLanguage(ELanguage language)
language - The initial language of the auto created model in the editor. To not create automatically a
model, use model: null.public EditorOptions setLanguage(java.lang.String language)
public java.lang.String getLineNumbers()
on.public EditorOptions setLineNumbers(ELineNumbers lineNumbers)
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 to
on.public EditorOptions setLineNumbers(java.lang.String lineNumbers)
public java.lang.String getMatchBrackets()
always.public EditorOptions setMatchBrackets(EMatchBrackets matchBrackets)
matchBrackets - Enable highlighting of matching brackets. Defaults to always.public EditorOptions setMatchBrackets(java.lang.String matchBrackets)
public java.lang.String getMouseStyle()
textpublic EditorOptions setMouseStyle(EMouseStyle mouseStyle)
mouseStyle - Control the mouse pointer style, either 'text' or 'default' or 'copy' Defaults to textpublic EditorOptions setMouseStyle(java.lang.String mouseStyle)
public java.lang.String getMultiCursorModifier()
altpublic EditorOptions setMultiCursorModifier(EMultiCursorModifier multiCursorModifier)
multiCursorModifier - The modifier to be used to add multiple cursors with the mouse. Defaults to altpublic EditorOptions setMultiCursorModifier(java.lang.String multiCursorModifier)
public java.lang.String getMultiCursorPaste()
spread.public EditorOptions setMultiCursorPaste(EMultiCursorPaste multiCursorPaste)
multiCursorPaste - Configure the behaviour when pasting a text with the line count equal to the cursor
count. Defaults to spread.public EditorOptions setMultiCursorPaste(java.lang.String multiCursorPaste)
public java.lang.String getPeekWidgetDefaultFocus()
false.public EditorOptions setPeekWidgetDefaultFocus(EPeekWidgetDefaultFocus peekWidgetDefaultFocus)
peekWidgetDefaultFocus - Controls whether to focus the inline editor in the peek widget by default. Defaults
to false.public EditorOptions setPeekWidgetDefaultFocus(java.lang.String peekWidgetDefaultFocus)
public java.lang.String getRenderLineHighlight()
all.public EditorOptions setRenderLineHighlight(ERenderLineHighlight renderLineHighlight)
renderLineHighlight - Enable rendering of current line highlight. Defaults to all.public EditorOptions setRenderLineHighlight(java.lang.String renderLineHighlight)
public java.lang.Boolean isRenderLineHighlightOnlyWhenFocus()
false.public EditorOptions setRenderLineHighlightOnlyWhenFocus(java.lang.Boolean renderLineHighlightOnlyWhenFocus)
renderLineHighlightOnlyWhenFocus - Control if the current line highlight should be rendered only the editor
is focused. Defaults to false.public java.lang.String getRenderValidationDecorations()
editable.public EditorOptions setRenderValidationDecorations(ERenderValidationDecorations renderValidationDecorations)
renderValidationDecorations - Should the editor render validation decorations. Defaults to editable.public EditorOptions setRenderValidationDecorations(java.lang.String renderValidationDecorations)
public java.lang.String getRenderWhitespace()
none.public EditorOptions setRenderWhitespace(ERenderWhitespace renderWhitespace)
renderWhitespace - Enable rendering of whitespace. Defaults to none.public EditorOptions setRenderWhitespace(java.lang.String renderWhitespace)
public java.lang.String getSemanticHighlightingEnabled()
true:
Semantic highlighting is enabled for all themes false: Semantic highlighting is disabled for all themes.
configuredByTheme: Semantic highlighting is controlled by the current color theme's semanticHighlighting setting. Defaults to configuredByTheme.public EditorOptions setSemanticHighlightingEnabled(ESemanticHighlightingEnabled semanticHighlightingEnabled)
semanticHighlightingEnabled - Controls whether the semanticHighlighting is shown for the languages that
support it. true: Semantic highlighting is enabled for all themes false: Semantic highlighting is
disabled for all themes. configuredByTheme: Semantic highlighting is controlled by the current color
theme's semanticHighlighting setting. Defaults to configuredByTheme.public EditorOptions setSemanticHighlightingEnabled(java.lang.String semanticHighlightingEnabled)
public java.lang.String getShowFoldingControls()
mouseover.public EditorOptions setShowFoldingControls(EShowFoldingControls showFoldingControls)
showFoldingControls - Controls whether the fold actions in the gutter stay always visible or hide unless the
mouse is over the gutter. Defaults to mouseover.public EditorOptions setShowFoldingControls(java.lang.String showFoldingControls)
public java.lang.String getSnippetSuggestions()
public EditorOptions setSnippetSuggestions(ESnippetSuggestions snippetSuggestions)
snippetSuggestions - Enable snippet suggestions. Defaults to 'inline'.public EditorOptions setSnippetSuggestions(java.lang.String snippetSuggestions)
public java.lang.String getSuggestSelection()
false.public EditorOptions setSuggestSelection(ESuggestSelection suggestSelection)
suggestSelection - Keep peek editors open even when double clicking their content or when hitting Escape.
Defaults to false.public EditorOptions setSuggestSelection(java.lang.String suggestSelection)
public java.lang.String getTabCompletion()
public EditorOptions setTabCompletion(ETabCompletion tabCompletion)
tabCompletion - Enable tab completion.public EditorOptions setTabCompletion(java.lang.String tabCompletion)
public java.lang.String getTheme()
vs
(default), vs-dark, hc-black. You can create custom themes via monaco.editor.defineTheme.
To switch a theme, use monaco.editor.setThemepublic EditorOptions setTheme(ETheme theme)
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 via monaco.editor.defineTheme.
To switch a theme, use monaco.editor.setThemepublic EditorOptions setTheme(java.lang.String theme)
public java.lang.String getUnusualLineTerminators()
prompt.public EditorOptions setUnusualLineTerminators(EUnusualLineTerminators unusualLineTerminators)
unusualLineTerminators - Remove unusual line terminators like LINE SEPARATOR (LS), PARAGRAPH SEPARATOR (PS).
Defaults to prompt.public EditorOptions setUnusualLineTerminators(java.lang.String unusualLineTerminators)
public java.lang.String getWordWrap()
wordWrap = off, the lines will never wrap. When
wordWrap = on, the lines will wrap at the viewport width. When wordWrap = wordWrapColumn, the lines will wrap at wordWrapColumn. When wordWrap = bounded, the
lines will wrap at min(viewport width, wordWrapColumn). Defaults to off.public EditorOptions setWordWrap(EWordWrap wordWrap)
wordWrap - Control the wrapping of the editor. When wordWrap = off, the lines will never
wrap. When wordWrap = on, the lines will wrap at the viewport width. When wordWrap =
wordWrapColumn, the lines will wrap at wordWrapColumn. When wordWrap = bounded,
the lines will wrap at min(viewport width, wordWrapColumn). Defaults to off.public EditorOptions setWordWrap(java.lang.String wordWrap)
public java.lang.String getWrappingIndent()
none, same, indent or deepIndent. Defaults to same in vscode and to none in monaco-editor.public EditorOptions setWrappingIndent(EWrappingIndent wrappingIndent)
wrappingIndent - Control indentation of wrapped lines. Can be: none, same, indent or
deepIndent. Defaults to same in vscode and to none in monaco-editor.public EditorOptions setWrappingIndent(java.lang.String wrappingIndent)
public java.lang.String getWrappingStrategy()
simple.public EditorOptions setWrappingStrategy(EWrappingStrategy wrappingStrategy)
wrappingStrategy - Controls the wrapping strategy to use. Defaults to simple.public EditorOptions setWrappingStrategy(java.lang.String wrappingStrategy)
public org.primefaces.shaded.json.JSONArray getRulers()
public EditorOptions setRulers(org.primefaces.shaded.json.JSONArray rulers)
rulers - Render vertical lines at the specified columns. Defaults to empty array.public EditorOptions addRuler(EditorRulerOption... items)
public EditorOptions setRulers(java.util.List<EditorRulerOption> rulers)
public java.lang.Boolean isAcceptSuggestionOnCommitCharacter()
true.public EditorOptions setAcceptSuggestionOnCommitCharacter(java.lang.Boolean acceptSuggestionOnCommitCharacter)
acceptSuggestionOnCommitCharacter - Accept suggestions on provider defined characters. Defaults to true.public java.lang.Boolean isAutomaticLayout()
false.public EditorOptions setAutomaticLayout(java.lang.Boolean automaticLayout)
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 to false.public java.lang.Boolean isCodeLens()
true.public EditorOptions setCodeLens(java.lang.Boolean codeLens)
codeLens - Show code lens Defaults to true.public java.lang.Boolean isColorDecorators()
public EditorOptions setColorDecorators(java.lang.Boolean colorDecorators)
colorDecorators - Enable inline color decorators and color picker rendering.public java.lang.Boolean isColumnSelection()
false.public EditorOptions setColumnSelection(java.lang.Boolean columnSelection)
columnSelection - Enable that the selection with the mouse and keys is doing column selection. Defaults to
false.public java.lang.Boolean isContextmenu()
true.public EditorOptions setContextmenu(java.lang.Boolean contextmenu)
contextmenu - Enable custom contextmenu. Defaults to true.public java.lang.Boolean isCopyWithSyntaxHighlighting()
public EditorOptions setCopyWithSyntaxHighlighting(java.lang.Boolean copyWithSyntaxHighlighting)
copyWithSyntaxHighlighting - Syntax highlighting is copied.public java.lang.Boolean isCursorSmoothCaretAnimation()
false.public EditorOptions setCursorSmoothCaretAnimation(java.lang.Boolean cursorSmoothCaretAnimation)
cursorSmoothCaretAnimation - Enable smooth caret animation. Defaults to false.public java.lang.Boolean isDefinitionLinkOpensInPeek()
false.public EditorOptions setDefinitionLinkOpensInPeek(java.lang.Boolean definitionLinkOpensInPeek)
definitionLinkOpensInPeek - Controls whether the definition link opens element in the peek widget. Defaults
to false.public java.lang.Boolean isDetectIndentation()
tabSize and insertSpaces will be automatically detected when a file is
opened based on the file contents. Defaults to true.public EditorOptions setDetectIndentation(java.lang.Boolean detectIndentation)
detectIndentation - Controls whether tabSize and insertSpaces will be automatically detected
when a file is opened based on the file contents. Defaults to true.public java.lang.Boolean isDisableLayerHinting()
false.public EditorOptions setDisableLayerHinting(java.lang.Boolean disableLayerHinting)
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 to false.public java.lang.Boolean isDisableMonospaceOptimizations()
false.public EditorOptions setDisableMonospaceOptimizations(java.lang.Boolean disableMonospaceOptimizations)
disableMonospaceOptimizations - Disable the optimizations for monospace fonts. Defaults to false.public java.lang.Boolean isDragAndDrop()
false.public EditorOptions setDragAndDrop(java.lang.Boolean dragAndDrop)
dragAndDrop - Controls if the editor should allow to move selections via drag and drop. Defaults to false.public java.lang.Boolean isEmptySelectionClipboard()
public EditorOptions setEmptySelectionClipboard(java.lang.Boolean emptySelectionClipboard)
emptySelectionClipboard - Copying without a selection copies the current linepublic java.lang.Boolean isFixedOverflowWidgets()
fixed. Defaults to falsepublic EditorOptions setFixedOverflowWidgets(java.lang.Boolean fixedOverflowWidgets)
fixedOverflowWidgets - Display overflow widgets as fixed. Defaults to falsepublic java.lang.Boolean isFolding()
true.public EditorOptions setFolding(java.lang.Boolean folding)
folding - Enable code folding. Defaults to true.public java.lang.Boolean isFoldingHighlight()
true.public EditorOptions setFoldingHighlight(java.lang.Boolean foldingHighlight)
foldingHighlight - Enable highlight for folded regions. Defaults to true.public java.lang.Boolean isFontLigatures()
falsepublic EditorOptions setFontLigatures(java.lang.Boolean fontLigatures)
fontLigatures - Enable font ligatures. Defaults to falsepublic java.lang.Boolean isFormatOnPaste()
falsepublic EditorOptions setFormatOnPaste(java.lang.Boolean formatOnPaste)
formatOnPaste - Enable format on paste. Defaults to falsepublic java.lang.Boolean isFormatOnType()
falsepublic EditorOptions setFormatOnType(java.lang.Boolean formatOnType)
formatOnType - Enable format on type. Defaults to falsepublic java.lang.Boolean isGlyphMargin()
true. in vscode and to false in
monaco-editorpublic EditorOptions setGlyphMargin(java.lang.Boolean glyphMargin)
glyphMargin - Enable the rendering of the glyph margin. Defaults to true. in vscode and to false in monaco-editorpublic java.lang.Boolean isHideCursorInOverviewRuler()
falsepublic EditorOptions setHideCursorInOverviewRuler(java.lang.Boolean hideCursorInOverviewRuler)
hideCursorInOverviewRuler - Should the cursor be hidden in the overview ruler. Defaults to falsepublic java.lang.Boolean isHighlightActiveIndentGuide()
true.public EditorOptions setHighlightActiveIndentGuide(java.lang.Boolean highlightActiveIndentGuide)
highlightActiveIndentGuide - Enable highlighting of the active indent guide. Defaults to true.public java.lang.Boolean isInsertSpaces()
Tab. This setting is overridden based on the file contents when
detectIndentation is on. Defaults to true.public EditorOptions setInsertSpaces(java.lang.Boolean insertSpaces)
insertSpaces - Insert spaces when pressing Tab. This setting is overridden based on the file
contents when detectIndentation is on. Defaults to true.public java.lang.Boolean isLargeFileOptimizations()
true.public EditorOptions setLargeFileOptimizations(java.lang.Boolean largeFileOptimizations)
largeFileOptimizations - Special handling for large files to disable certain memory intensive features.
Defaults to true.public java.lang.Boolean isLinks()
true.public EditorOptions setLinks(java.lang.Boolean links)
links - Enable detecting links and making them clickable. Defaults to true.public java.lang.Boolean isMouseWheelZoom()
falsepublic EditorOptions setMouseWheelZoom(java.lang.Boolean mouseWheelZoom)
mouseWheelZoom - Zoom the font in the editor when using the mouse wheel in combination with holding Ctrl.
Defaults to falsepublic java.lang.Boolean isMultiCursorMergeOverlapping()
true.public EditorOptions setMultiCursorMergeOverlapping(java.lang.Boolean multiCursorMergeOverlapping)
multiCursorMergeOverlapping - Merge overlapping selections. Defaults to true.public java.lang.Boolean isOccurrencesHighlight()
true.public EditorOptions setOccurrencesHighlight(java.lang.Boolean occurrencesHighlight)
occurrencesHighlight - Enable semantic occurrences highlight. Defaults to true.public java.lang.Boolean isOverviewRulerBorder()
true.public EditorOptions setOverviewRulerBorder(java.lang.Boolean overviewRulerBorder)
overviewRulerBorder - Controls if a border should be drawn around the overview ruler. Defaults to true.public java.lang.Boolean isReadOnly()
falsepublic EditorOptions setReadOnly(java.lang.Boolean readOnly)
readOnly - Should the editor be read only. Defaults to falsepublic java.lang.Boolean isRenameOnType()
false.public EditorOptions setRenameOnType(java.lang.Boolean renameOnType)
renameOnType - Rename matching regions on type. Defaults to false.public java.lang.Boolean isRenderControlCharacters()
false.public EditorOptions setRenderControlCharacters(java.lang.Boolean renderControlCharacters)
renderControlCharacters - Enable rendering of control characters. Defaults to false.public java.lang.Boolean isRenderFinalNewline()
true.public EditorOptions setRenderFinalNewline(java.lang.Boolean renderFinalNewline)
renderFinalNewline - Render last line number when the file ends with a newline. Defaults to true.public java.lang.Boolean isRenderIndentGuides()
true.public EditorOptions setRenderIndentGuides(java.lang.Boolean renderIndentGuides)
renderIndentGuides - Enable rendering of indent guides. Defaults to true.public java.lang.Boolean isRoundedSelection()
true.public EditorOptions setRoundedSelection(java.lang.Boolean roundedSelection)
roundedSelection - Render the editor selection with rounded borders. Defaults to true.public java.lang.Boolean isScrollBeyondLastLine()
true.public EditorOptions setScrollBeyondLastLine(java.lang.Boolean scrollBeyondLastLine)
scrollBeyondLastLine - Enable that scrolling can go one screen size after the last line. Defaults to true.public java.lang.Boolean isScrollPredominantAxis()
true.}public EditorOptions setScrollPredominantAxis(java.lang.Boolean scrollPredominantAxis)
scrollPredominantAxis - Enable that the editor scrolls only the predominant axis. Prevents horizontal drift
when scrolling vertically on a trackpad. Defaults to true.}public java.lang.Boolean isSelectOnLineNumbers()
true.public EditorOptions setSelectOnLineNumbers(java.lang.Boolean selectOnLineNumbers)
selectOnLineNumbers - Should the corresponding line be selected when clicking on the line number? Defaults
to true.public java.lang.Boolean isSelectionClipboard()
true.public EditorOptions setSelectionClipboard(java.lang.Boolean selectionClipboard)
selectionClipboard - Enable Linux primary clipboard. Defaults to true.public java.lang.Boolean isSelectionHighlight()
true.public EditorOptions setSelectionHighlight(java.lang.Boolean selectionHighlight)
selectionHighlight - Enable selection highlight. Defaults to true.public java.lang.Boolean isShowDeprecated()
public EditorOptions setShowDeprecated(java.lang.Boolean showDeprecated)
showDeprecated - Controls strikethrough deprecated variables.public java.lang.Boolean isShowUnused()
public EditorOptions setShowUnused(java.lang.Boolean showUnused)
showUnused - Controls fading out of unused variablespublic java.lang.Boolean isSmoothScrolling()
falsepublic EditorOptions setSmoothScrolling(java.lang.Boolean smoothScrolling)
smoothScrolling - Enable that the editor animates scrolling to a position. Defaults to falsepublic java.lang.Boolean isStablePeek()
falsepublic EditorOptions setStablePeek(java.lang.Boolean stablePeek)
stablePeek - Keep peek editors open even when double clicking their content or when hitting Escape. Defaults
to falsepublic java.lang.Boolean isSuggestOnTriggerCharacters()
true.public EditorOptions setSuggestOnTriggerCharacters(java.lang.Boolean suggestOnTriggerCharacters)
suggestOnTriggerCharacters - Enable the suggestion box to pop-up on trigger characters. Defaults to true.public java.lang.Boolean isTrimAutoWhitespace()
true.public EditorOptions setTrimAutoWhitespace(java.lang.Boolean trimAutoWhitespace)
trimAutoWhitespace - Remove trailing auto inserted whitespace. Defaults to true.public java.lang.Boolean isUnfoldOnClickAfterEndOfLine()
false}.public EditorOptions setUnfoldOnClickAfterEndOfLine(java.lang.Boolean unfoldOnClickAfterEndOfLine)
unfoldOnClickAfterEndOfLine - Controls whether clicking on the empty content after a folded line will unfold
the line. Defaults to false}.public java.lang.Boolean isUseTabStops()
public EditorOptions setUseTabStops(java.lang.Boolean useTabStops)
useTabStops - Inserting and deleting whitespace follows tab stops.public java.lang.Boolean isWordBasedSuggestions()
true
.public EditorOptions setWordBasedSuggestions(java.lang.Boolean wordBasedSuggestions)
wordBasedSuggestions - Controls whether completions should be computed based on words in the document.
Defaults to true .public java.lang.Boolean isWordWrapMinified()
true.public EditorOptions setWordWrapMinified(java.lang.Boolean wordWrapMinified)
wordWrapMinified - Force word wrapping when the text appears to be of a minified/generated file. Defaults to
true.public java.lang.Number getAccessibilityPageSize()
public EditorOptions setAccessibilityPageSize(java.lang.Number accessibilityPageSize)
accessibilityPageSize - Controls the number of lines in the editor that can be read out by a screen readerpublic java.lang.Number getCodeActionsOnSaveTimeout()
public EditorOptions setCodeActionsOnSaveTimeout(java.lang.Number codeActionsOnSaveTimeout)
codeActionsOnSaveTimeout - Timeout for running code actions on save.public java.lang.Number getCursorSurroundingLines()
0.public EditorOptions setCursorSurroundingLines(java.lang.Number cursorSurroundingLines)
cursorSurroundingLines - Controls the minimal number of visible leading and trailing lines surrounding the
cursor. Defaults to 0.public java.lang.Number getCursorWidth()
linepublic EditorOptions setCursorWidth(java.lang.Number cursorWidth)
cursorWidth - Control the width of the cursor when cursorStyle is set to linepublic java.lang.Number getFastScrollSensitivity()
Alt Defaults to 5.public EditorOptions setFastScrollSensitivity(java.lang.Number fastScrollSensitivity)
fastScrollSensitivity - FastScrolling mulitplier speed when pressing Alt Defaults to 5.public java.lang.Number getFontSize()
public EditorOptions setFontSize(java.lang.Number fontSize)
fontSize - The font sizepublic java.lang.Boolean isInDiffEditor()
public EditorOptions setInDiffEditor(java.lang.Boolean inDiffEditor)
inDiffEditor - This editor is used inside a diff editor.public java.lang.Boolean isStickyTabStops()
public EditorOptions setStickyTabStops(java.lang.Boolean stickyTabStops)
stickyTabStops - Emulate selection behaviour of tab characters when using spaces for indentation. This means
selection will stick to tab stops.public java.lang.Number getLetterSpacing()
public EditorOptions setLetterSpacing(java.lang.Number letterSpacing)
letterSpacing - The letter spacingpublic java.lang.Number getLineHeight()
public EditorOptions setLineHeight(java.lang.Number lineHeight)
lineHeight - The line heightpublic java.lang.Number getLineNumbersMinChars()
on.public EditorOptions setLineNumbersMinChars(java.lang.Number lineNumbersMinChars)
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 to on.public java.lang.Number getMaxTokenizationLineLength()
20000.public EditorOptions setMaxTokenizationLineLength(java.lang.Number maxTokenizationLineLength)
maxTokenizationLineLength - Lines above this length will not be tokenized for performance reasons. Defaults
to 20000.public java.lang.Number getMouseWheelScrollSensitivity()
deltaX and deltaY of mouse wheel scroll events. Defaults
to 1.public EditorOptions setMouseWheelScrollSensitivity(java.lang.Number mouseWheelScrollSensitivity)
mouseWheelScrollSensitivity - A multiplier to be used on the deltaX and deltaY of mouse
wheel scroll events. Defaults to 1.public java.lang.Number getOverviewRulerLanes()
3.public EditorOptions setOverviewRulerLanes(java.lang.Number overviewRulerLanes)
overviewRulerLanes - The number of vertical lanes the overview ruler should render. Defaults to 3.public java.lang.Number getQuickSuggestionsDelay()
10 (ms)public EditorOptions setQuickSuggestionsDelay(java.lang.Number quickSuggestionsDelay)
quickSuggestionsDelay - Quick suggestions show delay (in ms) Defaults to 10 (ms)public java.lang.Number getRevealHorizontalRightPadding()
30 (px).public EditorOptions setRevealHorizontalRightPadding(java.lang.Number revealHorizontalRightPadding)
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 to 30 (px).public java.lang.Number getScrollBeyondLastColumn()
5.public EditorOptions setScrollBeyondLastColumn(java.lang.Number scrollBeyondLastColumn)
scrollBeyondLastColumn - Enable that scrolling can go beyond the last column by a number of columns.
Defaults to 5.public java.lang.Number getStopRenderingLineAfter()
10000. Use -1 to
never stop renderingpublic EditorOptions setStopRenderingLineAfter(java.lang.Number stopRenderingLineAfter)
stopRenderingLineAfter - Performance guard: Stop rendering a line after x characters. Defaults to 10000. Use -1 to never stop renderingpublic java.lang.Number getSuggestFontSize()
public EditorOptions setSuggestFontSize(java.lang.Number suggestFontSize)
suggestFontSize - The font size for the suggest widget. Defaults to the editor font size.public java.lang.Number getSuggestLineHeight()
public EditorOptions setSuggestLineHeight(java.lang.Number suggestLineHeight)
suggestLineHeight - The line height for the suggest widget. Defaults to the editor line height.public java.lang.Number getTabIndex()
tabindex property of the editor's textarea.public EditorOptions setTabIndex(java.lang.Number tabIndex)
tabIndex - The tabindex property of the editor's textarea.public java.lang.Number getTabSize()
detectIndentation is on. Defaults to 4.public EditorOptions setTabSize(java.lang.Number tabSize)
tabSize - The number of spaces a tab is equal to. This setting is overridden based on the file contents when
detectIndentation is on. Defaults to 4.public java.lang.Number getWordWrapColumn()
wordWrap = off, the lines will never wrap. When
wordWrap = on, the lines will wrap at the viewport width. When wordWrap = wordWrapColumn, the lines will wrap at wordWrapColumn. When wordWrap = bounded, the lines will
wrap at min(viewport width, wordWrapColumn). Defaults to 80.public EditorOptions setWordWrapColumn(java.lang.Number wordWrapColumn)
wordWrapColumn - Control the wrapping of the editor. When wordWrap = off, the lines will
never wrap. When wordWrap = on, the lines will wrap at the viewport width. When wordWrap
= wordWrapColumn, the lines will wrap at wordWrapColumn. When wordWrap = bounded, the
lines will wrap at min(viewport width, wordWrapColumn). Defaults to 80.public java.lang.String getLineDecorationsWidth()
ch. e.g. 1.3ch.
Defaults to 10.public EditorOptions setLineDecorationsWidth(java.lang.Number lineDecorationsWidth)
lineDecorationsWidth - The width reserved for line decorations (in px). Line decorations are placed between
line numbers and the editor content. You can pass in a string in the format floating point followed by ch. e.g. 1.3ch. Defaults to 10.public EditorOptions setLineDecorationsWidth(java.lang.String lineDecorationsWidth)
public java.lang.String getAccessibilityHelpUrl()
public EditorOptions setAccessibilityHelpUrl(java.lang.String accessibilityHelpUrl)
accessibilityHelpUrl - An URL to open when Ctrl+H (Windows and Linux) or Cmd+H (OSX) is pressed in the
accessibility help dialog in the editor.public java.lang.String getAriaLabel()
public EditorOptions setAriaLabel(java.lang.String ariaLabel)
ariaLabel - The aria label for the editor's textarea (when it is focused).public java.lang.String getExtraEditorClassName()
public EditorOptions setExtraEditorClassName(java.lang.String extraEditorClassName)
extraEditorClassName - Class name to be added to the editor.public java.lang.String getFontFamily()
public EditorOptions setFontFamily(java.lang.String fontFamily)
fontFamily - The font familypublic java.lang.String getWordSeparators()
public EditorOptions setWordSeparators(java.lang.String wordSeparators)
wordSeparators - A string containing the word separators used when doing word navigation. Defaults to
`~!@#$%^&*()-=+[{]}|;:'",.<>/?public java.lang.String getWordWrapBreakAfterCharacters()
public EditorOptions setWordWrapBreakAfterCharacters(java.lang.String wordWrapBreakAfterCharacters)
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.public java.lang.String getWordWrapBreakBeforeCharacters()
public EditorOptions setWordWrapBreakBeforeCharacters(java.lang.String wordWrapBreakBeforeCharacters)
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.Copyright © 2011–2021. All rights reserved.