CodeEdit

Inherits: TextEdit < Control < CanvasItem < Node < Object

There is currently no description for this class. Please help us by contributing one!

Properties

bool

auto_brace_completion_enabled

false

bool

auto_brace_completion_highlight_matching

false

Dictionary

auto_brace_completion_pairs

{ "\"": "\"", "'": "'", "(": ")", "[": "]", "{": "}" }

bool

code_completion_enabled

false

String[]

code_completion_prefixes

[]

String[]

delimiter_comments

[]

String[]

delimiter_strings

["' '", "\" \""]

bool

gutters_draw_bookmarks

false

bool

gutters_draw_breakpoints_gutter

false

bool

gutters_draw_executing_lines

false

bool

gutters_draw_fold_gutter

false

bool

gutters_draw_line_numbers

false

bool

gutters_zero_pad_line_numbers

false

bool

indent_automatic

false

String[]

indent_automatic_prefixes

[":", "{", "[", "("]

int

indent_size

4

bool

indent_use_spaces

false

LayoutDirection

layout_direction

2 (overrides Control)

bool

line_folding

false

int[]

line_length_guidelines

[]

bool

symbol_lookup_on_click

false

TextDirection

text_direction

1 (overrides TextEdit)

Methods

void

_confirm_code_completion ( bool replace ) virtual

Dictionary[]

_filter_code_completion_candidates ( Dictionary[] candidates ) virtual const

void

_request_code_completion ( bool force ) virtual

void

add_auto_brace_completion_pair ( String start_key, String end_key )

void

add_code_completion_option ( CodeCompletionKind type, String display_text, String insert_text, Color text_color=Color(1, 1, 1, 1), Resource icon=null, Variant value=null, int location=1024 )

void

add_comment_delimiter ( String start_key, String end_key, bool line_only=false )

void

add_string_delimiter ( String start_key, String end_key, bool line_only=false )

bool

can_fold_line ( int line ) const

void

cancel_code_completion ( )

void

clear_bookmarked_lines ( )

void

clear_breakpointed_lines ( )

void

clear_comment_delimiters ( )

void

clear_executing_lines ( )

void

clear_string_delimiters ( )

void

confirm_code_completion ( bool replace=false )

void

convert_indent ( int from_line=-1, int to_line=-1 )

void

create_code_region ( )

void

delete_lines ( )

void

do_indent ( )

void

duplicate_lines ( )

void

duplicate_selection ( )

void

fold_all_lines ( )

void

fold_line ( int line )

String

get_auto_brace_completion_close_key ( String open_key ) const

PackedInt32Array

get_bookmarked_lines ( ) const

PackedInt32Array

get_breakpointed_lines ( ) const

Dictionary

get_code_completion_option ( int index ) const

Dictionary[]

get_code_completion_options ( ) const

int

get_code_completion_selected_index ( ) const

String

get_code_region_end_tag ( ) const

String

get_code_region_start_tag ( ) const

String

get_delimiter_end_key ( int delimiter_index ) const

Vector2

get_delimiter_end_position ( int line, int column ) const

String

get_delimiter_start_key ( int delimiter_index ) const

Vector2

get_delimiter_start_position ( int line, int column ) const

PackedInt32Array

get_executing_lines ( ) const

int[]

get_folded_lines ( ) const

String

get_text_for_code_completion ( ) const

String

get_text_for_symbol_lookup ( ) const

String

get_text_with_cursor_char ( int line, int column ) const

bool

has_auto_brace_completion_close_key ( String close_key ) const

bool

has_auto_brace_completion_open_key ( String open_key ) const

bool

has_comment_delimiter ( String start_key ) const

bool

has_string_delimiter ( String start_key ) const

void

indent_lines ( )

int

is_in_comment ( int line, int column=-1 ) const

int

is_in_string ( int line, int column=-1 ) const

bool

is_line_bookmarked ( int line ) const

bool

is_line_breakpointed ( int line ) const

bool

is_line_code_region_end ( int line ) const

bool

is_line_code_region_start ( int line ) const

bool

is_line_executing ( int line ) const

bool

is_line_folded ( int line ) const

void

move_lines_down ( )

void

move_lines_up ( )

void

remove_comment_delimiter ( String start_key )

void

remove_string_delimiter ( String start_key )

void

request_code_completion ( bool force=false )

void

set_code_completion_selected_index ( int index )

void

set_code_hint ( String code_hint )

void

set_code_hint_draw_below ( bool draw_below )

void

set_code_region_tags ( String start=”region”, String end=”endregion” )

void

set_line_as_bookmarked ( int line, bool bookmarked )

void

set_line_as_breakpoint ( int line, bool breakpointed )

void

set_line_as_executing ( int line, bool executing )

void

set_symbol_lookup_word_as_valid ( bool valid )

void

toggle_foldable_line ( int line )

void

toggle_foldable_lines_at_carets ( )

void

unfold_all_lines ( )

void

unfold_line ( int line )

void

unindent_lines ( )

void

update_code_completion_options ( bool force )

Theme Properties

Color

bookmark_color

Color(0.5, 0.64, 1, 0.8)

Color

brace_mismatch_color

Color(1, 0.2, 0.2, 1)

Color

breakpoint_color

Color(0.9, 0.29, 0.3, 1)

Color

code_folding_color

Color(0.8, 0.8, 0.8, 0.8)

Color

completion_background_color

Color(0.17, 0.16, 0.2, 1)

Color

completion_existing_color

Color(0.87, 0.87, 0.87, 0.13)

Color

completion_scroll_color

Color(1, 1, 1, 0.29)

Color

completion_scroll_hovered_color

Color(1, 1, 1, 0.4)

Color

completion_selected_color

Color(0.26, 0.26, 0.27, 1)

Color

executing_line_color

Color(0.98, 0.89, 0.27, 1)

Color

folded_code_region_color

Color(0.68, 0.46, 0.77, 0.2)

Color

line_length_guideline_color

Color(0.3, 0.5, 0.8, 0.1)

Color

line_number_color

Color(0.67, 0.67, 0.67, 0.4)

int

completion_lines

7

int

completion_max_width

50

int

completion_scroll_width

6

Texture2D

bookmark

Texture2D

breakpoint

Texture2D

can_fold

Texture2D

can_fold_code_region

Texture2D

executing_line

Texture2D

folded

Texture2D

folded_code_region

Texture2D

folded_eol_icon

StyleBox

completion


Signals

breakpoint_toggled ( int line )

There is currently no description for this signal. Please help us by contributing one!


code_completion_requested ( )

There is currently no description for this signal. Please help us by contributing one!


symbol_lookup ( String symbol, int line, int column )

There is currently no description for this signal. Please help us by contributing one!


symbol_validate ( String symbol )

There is currently no description for this signal. Please help us by contributing one!


Enumerations

enum CodeCompletionKind:

CodeCompletionKind KIND_CLASS = 0

There is currently no description for this enum. Please help us by contributing one!

CodeCompletionKind KIND_FUNCTION = 1

There is currently no description for this enum. Please help us by contributing one!

CodeCompletionKind KIND_SIGNAL = 2

There is currently no description for this enum. Please help us by contributing one!

CodeCompletionKind KIND_VARIABLE = 3

There is currently no description for this enum. Please help us by contributing one!

CodeCompletionKind KIND_MEMBER = 4

There is currently no description for this enum. Please help us by contributing one!

CodeCompletionKind KIND_ENUM = 5

There is currently no description for this enum. Please help us by contributing one!

CodeCompletionKind KIND_CONSTANT = 6

There is currently no description for this enum. Please help us by contributing one!

CodeCompletionKind KIND_NODE_PATH = 7

There is currently no description for this enum. Please help us by contributing one!

CodeCompletionKind KIND_FILE_PATH = 8

There is currently no description for this enum. Please help us by contributing one!

CodeCompletionKind KIND_PLAIN_TEXT = 9

There is currently no description for this enum. Please help us by contributing one!


enum CodeCompletionLocation:

CodeCompletionLocation LOCATION_LOCAL = 0

There is currently no description for this enum. Please help us by contributing one!

CodeCompletionLocation LOCATION_PARENT_MASK = 256

There is currently no description for this enum. Please help us by contributing one!

CodeCompletionLocation LOCATION_OTHER_USER_CODE = 512

There is currently no description for this enum. Please help us by contributing one!

CodeCompletionLocation LOCATION_OTHER = 1024

There is currently no description for this enum. Please help us by contributing one!


Property Descriptions

bool auto_brace_completion_enabled = false

  • void set_auto_brace_completion_enabled ( bool value )

  • bool is_auto_brace_completion_enabled ( )

There is currently no description for this property. Please help us by contributing one!


bool auto_brace_completion_highlight_matching = false

  • void set_highlight_matching_braces_enabled ( bool value )

  • bool is_highlight_matching_braces_enabled ( )

There is currently no description for this property. Please help us by contributing one!


Dictionary auto_brace_completion_pairs = { "\"": "\"", "'": "'", "(": ")", "[": "]", "{": "}" }

  • void set_auto_brace_completion_pairs ( Dictionary value )

  • Dictionary get_auto_brace_completion_pairs ( )

There is currently no description for this property. Please help us by contributing one!


bool code_completion_enabled = false

  • void set_code_completion_enabled ( bool value )

  • bool is_code_completion_enabled ( )

There is currently no description for this property. Please help us by contributing one!


String[] code_completion_prefixes = []

  • void set_code_completion_prefixes ( String[] value )

  • String[] get_code_completion_prefixes ( )

There is currently no description for this property. Please help us by contributing one!


String[] delimiter_comments = []

  • void set_comment_delimiters ( String[] value )

  • String[] get_comment_delimiters ( )

There is currently no description for this property. Please help us by contributing one!


String[] delimiter_strings = ["' '", "\" \""]

  • void set_string_delimiters ( String[] value )

  • String[] get_string_delimiters ( )

There is currently no description for this property. Please help us by contributing one!


bool gutters_draw_bookmarks = false

  • void set_draw_bookmarks_gutter ( bool value )

  • bool is_drawing_bookmarks_gutter ( )

There is currently no description for this property. Please help us by contributing one!


bool gutters_draw_breakpoints_gutter = false

  • void set_draw_breakpoints_gutter ( bool value )

  • bool is_drawing_breakpoints_gutter ( )

There is currently no description for this property. Please help us by contributing one!


bool gutters_draw_executing_lines = false

  • void set_draw_executing_lines_gutter ( bool value )

  • bool is_drawing_executing_lines_gutter ( )

There is currently no description for this property. Please help us by contributing one!


bool gutters_draw_fold_gutter = false

  • void set_draw_fold_gutter ( bool value )

  • bool is_drawing_fold_gutter ( )

There is currently no description for this property. Please help us by contributing one!


bool gutters_draw_line_numbers = false

  • void set_draw_line_numbers ( bool value )

  • bool is_draw_line_numbers_enabled ( )

There is currently no description for this property. Please help us by contributing one!


bool gutters_zero_pad_line_numbers = false

  • void set_line_numbers_zero_padded ( bool value )

  • bool is_line_numbers_zero_padded ( )

There is currently no description for this property. Please help us by contributing one!


bool indent_automatic = false

  • void set_auto_indent_enabled ( bool value )

  • bool is_auto_indent_enabled ( )

There is currently no description for this property. Please help us by contributing one!


String[] indent_automatic_prefixes = [":", "{", "[", "("]

  • void set_auto_indent_prefixes ( String[] value )

  • String[] get_auto_indent_prefixes ( )

There is currently no description for this property. Please help us by contributing one!


int indent_size = 4

  • void set_indent_size ( int value )

  • int get_indent_size ( )

There is currently no description for this property. Please help us by contributing one!


bool indent_use_spaces = false

  • void set_indent_using_spaces ( bool value )

  • bool is_indent_using_spaces ( )

There is currently no description for this property. Please help us by contributing one!


bool line_folding = false

  • void set_line_folding_enabled ( bool value )

  • bool is_line_folding_enabled ( )

There is currently no description for this property. Please help us by contributing one!


int[] line_length_guidelines = []

  • void set_line_length_guidelines ( int[] value )

  • int[] get_line_length_guidelines ( )

There is currently no description for this property. Please help us by contributing one!


bool symbol_lookup_on_click = false

  • void set_symbol_lookup_on_click_enabled ( bool value )

  • bool is_symbol_lookup_on_click_enabled ( )

There is currently no description for this property. Please help us by contributing one!


Method Descriptions

void _confirm_code_completion ( bool replace ) virtual

There is currently no description for this method. Please help us by contributing one!


Dictionary[] _filter_code_completion_candidates ( Dictionary[] candidates ) virtual const

There is currently no description for this method. Please help us by contributing one!


void _request_code_completion ( bool force ) virtual

There is currently no description for this method. Please help us by contributing one!


void add_auto_brace_completion_pair ( String start_key, String end_key )

There is currently no description for this method. Please help us by contributing one!


void add_code_completion_option ( CodeCompletionKind type, String display_text, String insert_text, Color text_color=Color(1, 1, 1, 1), Resource icon=null, Variant value=null, int location=1024 )

There is currently no description for this method. Please help us by contributing one!


void add_comment_delimiter ( String start_key, String end_key, bool line_only=false )

There is currently no description for this method. Please help us by contributing one!


void add_string_delimiter ( String start_key, String end_key, bool line_only=false )

There is currently no description for this method. Please help us by contributing one!


bool can_fold_line ( int line ) const

There is currently no description for this method. Please help us by contributing one!


void cancel_code_completion ( )

There is currently no description for this method. Please help us by contributing one!


void clear_bookmarked_lines ( )

There is currently no description for this method. Please help us by contributing one!


void clear_breakpointed_lines ( )

There is currently no description for this method. Please help us by contributing one!


void clear_comment_delimiters ( )

There is currently no description for this method. Please help us by contributing one!


void clear_executing_lines ( )

There is currently no description for this method. Please help us by contributing one!


void clear_string_delimiters ( )

There is currently no description for this method. Please help us by contributing one!


void confirm_code_completion ( bool replace=false )

There is currently no description for this method. Please help us by contributing one!


void convert_indent ( int from_line=-1, int to_line=-1 )

There is currently no description for this method. Please help us by contributing one!


void create_code_region ( )

There is currently no description for this method. Please help us by contributing one!


void delete_lines ( )

There is currently no description for this method. Please help us by contributing one!


void do_indent ( )

There is currently no description for this method. Please help us by contributing one!


void duplicate_lines ( )

There is currently no description for this method. Please help us by contributing one!


void duplicate_selection ( )

There is currently no description for this method. Please help us by contributing one!


void fold_all_lines ( )

There is currently no description for this method. Please help us by contributing one!


void fold_line ( int line )

There is currently no description for this method. Please help us by contributing one!


String get_auto_brace_completion_close_key ( String open_key ) const

There is currently no description for this method. Please help us by contributing one!


PackedInt32Array get_bookmarked_lines ( ) const

There is currently no description for this method. Please help us by contributing one!


PackedInt32Array get_breakpointed_lines ( ) const

There is currently no description for this method. Please help us by contributing one!


Dictionary get_code_completion_option ( int index ) const

There is currently no description for this method. Please help us by contributing one!


Dictionary[] get_code_completion_options ( ) const

There is currently no description for this method. Please help us by contributing one!


int get_code_completion_selected_index ( ) const

There is currently no description for this method. Please help us by contributing one!


String get_code_region_end_tag ( ) const

There is currently no description for this method. Please help us by contributing one!


String get_code_region_start_tag ( ) const

There is currently no description for this method. Please help us by contributing one!


String get_delimiter_end_key ( int delimiter_index ) const

There is currently no description for this method. Please help us by contributing one!


Vector2 get_delimiter_end_position ( int line, int column ) const

There is currently no description for this method. Please help us by contributing one!


String get_delimiter_start_key ( int delimiter_index ) const

There is currently no description for this method. Please help us by contributing one!


Vector2 get_delimiter_start_position ( int line, int column ) const

There is currently no description for this method. Please help us by contributing one!


PackedInt32Array get_executing_lines ( ) const

There is currently no description for this method. Please help us by contributing one!


int[] get_folded_lines ( ) const

There is currently no description for this method. Please help us by contributing one!


String get_text_for_code_completion ( ) const

There is currently no description for this method. Please help us by contributing one!


String get_text_for_symbol_lookup ( ) const

There is currently no description for this method. Please help us by contributing one!


String get_text_with_cursor_char ( int line, int column ) const

There is currently no description for this method. Please help us by contributing one!


bool has_auto_brace_completion_close_key ( String close_key ) const

There is currently no description for this method. Please help us by contributing one!


bool has_auto_brace_completion_open_key ( String open_key ) const

There is currently no description for this method. Please help us by contributing one!


bool has_comment_delimiter ( String start_key ) const

There is currently no description for this method. Please help us by contributing one!


bool has_string_delimiter ( String start_key ) const

There is currently no description for this method. Please help us by contributing one!


void indent_lines ( )

There is currently no description for this method. Please help us by contributing one!


int is_in_comment ( int line, int column=-1 ) const

There is currently no description for this method. Please help us by contributing one!


int is_in_string ( int line, int column=-1 ) const

There is currently no description for this method. Please help us by contributing one!


bool is_line_bookmarked ( int line ) const

There is currently no description for this method. Please help us by contributing one!


bool is_line_breakpointed ( int line ) const

There is currently no description for this method. Please help us by contributing one!


bool is_line_code_region_end ( int line ) const

There is currently no description for this method. Please help us by contributing one!


bool is_line_code_region_start ( int line ) const

There is currently no description for this method. Please help us by contributing one!


bool is_line_executing ( int line ) const

There is currently no description for this method. Please help us by contributing one!


bool is_line_folded ( int line ) const

There is currently no description for this method. Please help us by contributing one!


void move_lines_down ( )

There is currently no description for this method. Please help us by contributing one!


void move_lines_up ( )

There is currently no description for this method. Please help us by contributing one!


void remove_comment_delimiter ( String start_key )

There is currently no description for this method. Please help us by contributing one!


void remove_string_delimiter ( String start_key )

There is currently no description for this method. Please help us by contributing one!


void request_code_completion ( bool force=false )

There is currently no description for this method. Please help us by contributing one!


void set_code_completion_selected_index ( int index )

There is currently no description for this method. Please help us by contributing one!


void set_code_hint ( String code_hint )

There is currently no description for this method. Please help us by contributing one!


void set_code_hint_draw_below ( bool draw_below )

There is currently no description for this method. Please help us by contributing one!


void set_code_region_tags ( String start=”region”, String end=”endregion” )

There is currently no description for this method. Please help us by contributing one!


void set_line_as_bookmarked ( int line, bool bookmarked )

There is currently no description for this method. Please help us by contributing one!


void set_line_as_breakpoint ( int line, bool breakpointed )

There is currently no description for this method. Please help us by contributing one!


void set_line_as_executing ( int line, bool executing )

There is currently no description for this method. Please help us by contributing one!


void set_symbol_lookup_word_as_valid ( bool valid )

There is currently no description for this method. Please help us by contributing one!


void toggle_foldable_line ( int line )

There is currently no description for this method. Please help us by contributing one!


void toggle_foldable_lines_at_carets ( )

There is currently no description for this method. Please help us by contributing one!


void unfold_all_lines ( )

There is currently no description for this method. Please help us by contributing one!


void unfold_line ( int line )

There is currently no description for this method. Please help us by contributing one!


void unindent_lines ( )

There is currently no description for this method. Please help us by contributing one!


void update_code_completion_options ( bool force )

There is currently no description for this method. Please help us by contributing one!


Theme Property Descriptions

Color bookmark_color = Color(0.5, 0.64, 1, 0.8)

There is currently no description for this theme property. Please help us by contributing one!


Color brace_mismatch_color = Color(1, 0.2, 0.2, 1)

There is currently no description for this theme property. Please help us by contributing one!


Color breakpoint_color = Color(0.9, 0.29, 0.3, 1)

There is currently no description for this theme property. Please help us by contributing one!


Color code_folding_color = Color(0.8, 0.8, 0.8, 0.8)

There is currently no description for this theme property. Please help us by contributing one!


Color completion_background_color = Color(0.17, 0.16, 0.2, 1)

There is currently no description for this theme property. Please help us by contributing one!


Color completion_existing_color = Color(0.87, 0.87, 0.87, 0.13)

There is currently no description for this theme property. Please help us by contributing one!


Color completion_scroll_color = Color(1, 1, 1, 0.29)

There is currently no description for this theme property. Please help us by contributing one!


Color completion_scroll_hovered_color = Color(1, 1, 1, 0.4)

There is currently no description for this theme property. Please help us by contributing one!


Color completion_selected_color = Color(0.26, 0.26, 0.27, 1)

There is currently no description for this theme property. Please help us by contributing one!


Color executing_line_color = Color(0.98, 0.89, 0.27, 1)

There is currently no description for this theme property. Please help us by contributing one!


Color folded_code_region_color = Color(0.68, 0.46, 0.77, 0.2)

There is currently no description for this theme property. Please help us by contributing one!


Color line_length_guideline_color = Color(0.3, 0.5, 0.8, 0.1)

There is currently no description for this theme property. Please help us by contributing one!


Color line_number_color = Color(0.67, 0.67, 0.67, 0.4)

There is currently no description for this theme property. Please help us by contributing one!


int completion_lines = 7

There is currently no description for this theme property. Please help us by contributing one!


int completion_max_width = 50

There is currently no description for this theme property. Please help us by contributing one!


int completion_scroll_width = 6

There is currently no description for this theme property. Please help us by contributing one!


Texture2D bookmark

There is currently no description for this theme property. Please help us by contributing one!


Texture2D breakpoint

There is currently no description for this theme property. Please help us by contributing one!


Texture2D can_fold

There is currently no description for this theme property. Please help us by contributing one!


Texture2D can_fold_code_region

There is currently no description for this theme property. Please help us by contributing one!


Texture2D executing_line

There is currently no description for this theme property. Please help us by contributing one!


Texture2D folded

There is currently no description for this theme property. Please help us by contributing one!


Texture2D folded_code_region

There is currently no description for this theme property. Please help us by contributing one!


Texture2D folded_eol_icon

There is currently no description for this theme property. Please help us by contributing one!


StyleBox completion

There is currently no description for this theme property. Please help us by contributing one!