1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-12 13:20:55 +00:00

Add line length guideline to code editors

This commit is contained in:
Pedro J. Estébanez
2016-10-10 10:34:51 +02:00
parent e0e21984d8
commit d9c1729a8f
5 changed files with 39 additions and 0 deletions

View File

@@ -549,6 +549,10 @@ void EditorSettings::_load_defaults(Ref<ConfigFile> p_extra_config) {
set("text_editor/show_line_numbers", true);
set("text_editor/show_breakpoint_gutter", true);
set("text_editor/show_line_length_guideline", false);
set("text_editor/line_length_guideline_column", 80);
hints["text_editor/line_length_guideline_column"]=PropertyInfo(Variant::INT,"text_editor/line_length_guideline_column",PROPERTY_HINT_RANGE,"20, 160, 10");
set("text_editor/trim_trailing_whitespace_on_save", false);
set("text_editor/idle_parse_delay",2);
set("text_editor/create_signal_callbacks",true);