var autoBraceCompletionEnabled: BoolSets whether brace pairs should be autocompleted.
var autoBraceCompletionHighlightMatching: BoolHighlight mismatching brace pairs.
var autoBraceCompletionPairs: GDictionarySets the brace pairs to be autocompleted.
var breakpointToggled: Signal1Emitted when a breakpoint is added or removed from a line. If the line is moved via backspace a removed is emitted at the old line.
var codeCompletionEnabled: BoolSets whether code completion is allowed.
var codeCompletionPrefixes: VariantCollection<String>Sets prefixes that will trigger code completion.
var codeCompletionRequested: SimpleSignalEmitted when the user requests code completion.
var delimiterStrings: VariantCollection<String>Sets the string delimiters. All existing string delimiters will be removed.
var guttersDrawBookmarks: BoolSets if bookmarked should be drawn in the gutter. This gutter is shared with breakpoints and executing lines.
var guttersDrawBreakpointsGutter: BoolSets if breakpoints should be drawn in the gutter. This gutter is shared with bookmarks and executing lines.
var guttersDrawExecutingLines: BoolSets if executing lines should be marked in the gutter. This gutter is shared with breakpoints and bookmarks lines.
var guttersDrawFoldGutter: BoolSets if foldable lines icons should be drawn in the gutter.
var indentAutomatic: BoolSets whether automatic indent are enabled, this will add an extra indent if a prefix or brace is found.
var indentAutomaticPrefixes: VariantCollection<String>Prefixes to trigger an automatic indent.
var indentSize: Int32Size of the tabulation indent (one [kbd]Tab[/kbd] press) in characters. If indentUseSpaces is enabled the number of spaces to use.
var indentUseSpaces: BoolUse spaces instead of tabs for indentation.
var lineFolding: BoolSets whether line folding is allowed.
var lineLengthGuidelines: VariantCollection<Int64>Draws vertical lines at the provided columns. The first entry is considered a main hard guideline and is draw more prominently.
var symbolLookup: Signal2Emitted when the user has clicked on a valid symbol.
var symbolLookupOnClick: BoolSet when a validated word from [signal symbol_validate] is clicked, the [signal symbol_lookup] should be emitted.
var symbolValidate: Signal3Emitted when the user hovers over a symbol. The symbol should be validated and responded to, by calling setSymbolLookupWordAsValid(_:).
func addAutoBraceCompletionPair(startKey: String, endKey: String)Adds a brace pair.
func addCodeCompletionOption(type: CodeEdit.CodeCompletionKind, displayText: String, insertText: String, textColor: Color, icon: Resource?, value: Variant, location: Int32)Submits an item to the queue of potential candidates for the autocomplete menu. Call updateCodeCompletionOptions(force:) to update the list.
func addStringDelimiter(startKey: String, endKey: String, lineOnly: Bool)Defines a string delimiter from startKey to endKey. Both keys should be symbols, and startKey must not be shared with other delimiters.
func canFoldLine(Int32) -> BoolReturns if the given line is foldable, that is, it has indented lines right below it or a comment / string block.
func cancelCodeCompletion()Cancels the autocomplete menu.
func clearBookmarkedLines()Clears all bookmarked lines.
func clearBreakpointedLines()Clears all breakpointed lines.
func clearExecutingLines()Clears all executed lines.
func clearStringDelimiters()Removes all string delimiters.
func confirmCodeCompletion(replace: Bool)Inserts the selected entry into the text. If replace is true, any existing text is replaced rather than merged.
func convertIndent(fromLine: Int32, toLine: Int32)Converts the indents of lines between fromLine and toLine to tabs or spaces as set by indentUseSpaces.
func createCodeRegion()Creates a new code region with the selection. At least one single line comment delimiter have to be defined (see addCommentDelimiter(startKey:endKey:lineOnly:)).
func deleteLines()Deletes all lines that are selected or have a caret on them.
func doIndent()Perform an indent as if the user activated the “ui_text_indent” action.
func duplicateLines()Duplicates all lines currently selected with any caret. Duplicates the entire line beneath the current one no matter where the caret is within the line.
func duplicateSelection()Duplicates all selected text and duplicates all lines with a caret on them.
func foldAllLines()Folds all lines that are possible to be folded (see canFoldLine(_:)).
func foldLine(Int32)Folds the given line, if possible (see canFoldLine(_:)).
func getAutoBraceCompletionCloseKey(openKey: String) -> StringGets the matching auto brace close key for openKey.
func getBookmarkedLines() -> PackedInt32ArrayGets all bookmarked lines.
func getBreakpointedLines() -> PackedInt32ArrayGets all breakpointed lines.
func getCodeCompletionOption(index: Int32) -> GDictionaryGets the completion option at index. The return GDictionary has the following key-values:
func getCodeCompletionOptions() -> VariantCollection<GDictionary>Gets all completion options, see getCodeCompletionOption(index:) for return content.
func getCodeCompletionSelectedIndex() -> Int32Gets the index of the current selected completion option.
func getCodeRegionEndTag() -> StringReturns the code region end tag (without comment delimiter).
func getCodeRegionStartTag() -> StringReturns the code region start tag (without comment delimiter).
func getDelimiterEndKey(delimiterIndex: Int32) -> StringGets the end key for a string or comment region index.
func getDelimiterEndPosition(line: Int32, column: Int32) -> Vector2If line column is in a string or comment, returns the end position of the region. If not or no end could be found, both Vector2 values will be -1.
func getDelimiterStartKey(delimiterIndex: Int32) -> StringGets the start key for a string or comment region index.
func getDelimiterStartPosition(line: Int32, column: Int32) -> Vector2If line column is in a string or comment, returns the start position of the region. If not or no start could be found, both Vector2 values will be -1.
func getExecutingLines() -> PackedInt32ArrayGets all executing lines.
func getFoldedLines() -> VariantCollection<Int64>Returns all lines that are current folded.
func getTextForCodeCompletion() -> StringReturns the full text with char 0xFFFF at the caret location.
func getTextForSymbolLookup() -> StringReturns the full text with char 0xFFFF at the cursor location.
func getTextWithCursorChar(line: Int32, column: Int32) -> StringReturns the full text with char 0xFFFF at the specified location.
func hasAutoBraceCompletionCloseKey(String) -> BoolReturns true if close key closeKey exists.
func hasAutoBraceCompletionOpenKey(String) -> BoolReturns true if open key openKey exists.
func hasStringDelimiter(startKey: String) -> BoolReturns true if string startKey exists.
func indentLines()Indents selected lines, or in the case of no selection the caret line by one.
func isInComment(line: Int32, column: Int32) -> Int32Returns delimiter index if line column is in a comment. If column is not provided, will return delimiter index if the entire line is a comment. Otherwise -1.
func isInString(line: Int32, column: Int32) -> Int32Returns the delimiter index if line column is in a string. If column is not provided, will return the delimiter index if the entire line is a string. Otherwise -1.
func isLineBookmarked(line: Int32) -> BoolReturns whether the line at the specified index is bookmarked or not.
func isLineBreakpointed(line: Int32) -> BoolReturns whether the line at the specified index is breakpointed or not.
func isLineCodeRegionEnd(line: Int32) -> BoolReturns whether the line at the specified index is a code region end.
func isLineCodeRegionStart(line: Int32) -> BoolReturns whether the line at the specified index is a code region start.
func isLineExecuting(line: Int32) -> BoolReturns whether the line at the specified index is marked as executing or not.
func isLineFolded(line: Int32) -> BoolReturns whether the line at the specified index is folded or not.
func moveLinesDown()Moves all lines down that are selected or have a caret on them.
func moveLinesUp()Moves all lines up that are selected or have a caret on them.
func removeStringDelimiter(startKey: String)Removes the string delimiter with startKey.
func requestCodeCompletion(force: Bool)Emits [signal code_completion_requested], if force is true will bypass all checks. Otherwise will check that the caret is in a word or in front of a prefix. Will ignore the request if all current options are of type file path, node path, or signal.
func setCodeCompletionSelectedIndex(Int32)Sets the current selected completion option.
func setCodeHint(String)Sets the code hint text. Pass an empty string to clear.
func setCodeHintDrawBelow(Bool)Sets if the code hint should draw below the text.
func setCodeRegionTags(start: String, end: String)Sets the code region start and end tags (without comment delimiter).
func setLineAsBookmarked(line: Int32, bookmarked: Bool)Sets the line as bookmarked.
func setLineAsBreakpoint(line: Int32, breakpointed: Bool)Sets the line as breakpointed.
func setLineAsExecuting(line: Int32, executing: Bool)Sets the line as executing.
func setSymbolLookupWordAsValid(Bool)Sets the symbol emitted by [signal symbol_validate] as a valid lookup.
func toggleFoldableLine(Int32)Toggle the folding of the code block at the given line.
func toggleFoldableLinesAtCarets()Toggle the folding of the code block on all lines with a caret on them.
func unfoldAllLines()Unfolds all lines, folded or not.
func unfoldLine(Int32)Unfolds all lines that were previously folded.
func unindentLines()Unindents selected lines, or in the case of no selection the caret line by one. Same as performing “ui_text_unindent” action.
func updateCodeCompletionOptions(force: Bool)Submits all completion options added with addCodeCompletionOption(type:displayText:insertText:textColor:icon:value:location:). Will try to force the autocomplete menu to popup, if force is true.