CodeEdit¶
Inherits: TextEdit < Control < CanvasItem < Node < Object
A multiline text editor designed for editing code.
Description¶
CodeEdit is a specialized TextEdit designed for editing plain text code files. It has many features commonly found in code editors such as line numbers, line folding, code completion, indent management, and string/comment management.
Note: Regardless of locale, CodeEdit will by default always use left-to-right text direction to correctly display source code.
Properties¶
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
layout_direction |
|
|
|
||
|
||
|
||
text_direction |
|
Methods¶
void |
_confirm_code_completion ( bool replace ) virtual |
_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=0, 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 ) |
can_fold_line ( int line ) |