TTMSFNCMemoOptions Class
Aggregates the full set of behavioural and visual options that control how the code editor renders and responds to user input, including line numbers, folding, scrolling, the minimap, word wrap, and code completion.
API unit family: TMSFNCMemo
Inherits from: TPersistent
Syntax
TTMSFNCMemoOptions = class(TPersistent)
Properties
| Name | Description |
|---|---|
| AutoGlyphMargin | When True, the glyph margin width is adjusted automatically based on whether breakpoints or annotations are present. |
| AutoOpenLink | When True, clicking a URL in the editor opens it in the default browser. |
| BlockSelection | When True, the editor operates in column/block-selection mode where dragging selects a rectangular block of text. |
| BracketPairColorization | When True, matching bracket pairs are each coloured with a distinct colour to make nesting levels immediately visible. |
| CodeLens | When True, code-lens annotations provided by a language service are shown above relevant lines. |
| CommandPalette | When True, the command palette overlay (Ctrl+Shift+P) is available in the editor. |
| ContextMenu | When True, a right-click context menu with common editor actions is available in the editor. |
| DragAndDrop | When True, text can be moved within the editor by dragging a selection. |
| EmptySelectionClipboard | When True, pressing Ctrl+C with no selection copies the entire current line to the clipboard. |
| Folding | When True, code-folding controls are shown in the gutter so collapsible regions can be expanded and collapsed. |
| FoldingHighlights | When True, folded regions display a highlight to indicate hidden content. |
| FormatOnPaste | When True, the language formatter runs automatically when content is pasted into the editor. |
| FormatOnType | When True, the language formatter runs automatically as the user types. |
| GlyphMargin | When True, a clickable glyph margin column is shown to the left of the line-number gutter, typically used for breakpoints and annotations. |
| LineNumbers | When True, line numbers are displayed in the gutter on the left side of the editor. |
| Links | When True, URLs detected in the editor content are rendered as clickable hyperlinks. |
| MiniMap | Settings that control the visibility, sizing, and character rendering of the document minimap panel. |
| MouseWheelZoom | When True, holding Ctrl and rotating the mouse wheel changes the editor font size. |
| OverviewRulerBorder | When True, a border is drawn around the overview ruler panel on the right edge of the editor. |
| OverviewRulerLanes | Number of decoration lanes shown in the overview ruler on the right edge of the editor; default is 3. |
| QuickSuggestion | Per-token-context quick-suggestion settings controlling whether inline completions appear automatically in strings, comments, and other contexts. |
| RenderIndentGuides | When True, indentation guide lines are rendered between matching bracket or block pairs. |
| RenderLineHighlight | Determines how the current line is highlighted in the editor: hlNone disables highlighting, hlGutter highlights the gutter only, hlLine highlights the full line, hlAll highlights both. |
| RenderLineHighlightOnlyWhenFocus | When True, the current-line highlight is shown only while the editor has keyboard focus. |
| RenderWhiteSpace | Controls which whitespace characters are rendered as visible symbols: mwNone hides all, mwBoundary shows leading/trailing, mwSelection shows within the selection, mwAll shows all whitespace. |
| RoundedSelection | When True, selected text is rendered with rounded corners instead of a straight rectangular highlight. |
| Scrollbar | Settings that control scroll bar visibility, size, and mouse-wheel behaviour. |
| SelectOnLineNumbers | When True, clicking a line number selects the entire line. |
| SelectionHighlight | When True, all occurrences of the currently selected word are highlighted throughout the document. |
| TabSize | Number of spaces inserted when the Tab key is pressed; default is 2. |
| UseCustomCodeCompletion | When True, completions supplied via the OnSuggestion event and the CompletionList collection are used instead of the built-in language service completions. |
| WordWrap | Determines how long lines wrap: wwtOn wraps at the viewport edge, wwtOff disables wrapping, wwtWordWrapColumn wraps at WordWrapColumn, wwtBounded wraps at the minimum of the viewport and WordWrapColumn. |
| WordWrapColumn | Column at which lines wrap when WordWrap is wwtWordWrapColumn or wwtBounded. |