From 937a96b26baf26efbc0b9c08df9d4e81a24e143a Mon Sep 17 00:00:00 2001 From: Paulb23 Date: Wed, 30 Mar 2016 19:16:52 +0100 Subject: [PATCH] Option to toggle line numbers (cherry picked from commit 474911c5338e3dfece0c7195c50e11b9027adb05) --- tools/editor/editor_settings.cpp | 2 ++ tools/editor/plugins/script_editor_plugin.cpp | 2 ++ 2 files changed, 4 insertions(+) diff --git a/tools/editor/editor_settings.cpp b/tools/editor/editor_settings.cpp index 5be0935742e..2d83f65cd26 100644 --- a/tools/editor/editor_settings.cpp +++ b/tools/editor/editor_settings.cpp @@ -491,6 +491,8 @@ void EditorSettings::_load_defaults(Ref p_extra_config) { hints["text_editor/tab_size"]=PropertyInfo(Variant::INT,"text_editor/tab_size",PROPERTY_HINT_RANGE,"1, 64, 1"); // size of 0 crashes. set("text_editor/draw_tabs", true); + set("text_editor/show_line_numbers", true); + set("text_editor/idle_parse_delay",2); set("text_editor/create_signal_callbacks",true); set("text_editor/autosave_interval_secs",0); diff --git a/tools/editor/plugins/script_editor_plugin.cpp b/tools/editor/plugins/script_editor_plugin.cpp index 782bb21cc20..7ead5b8eb37 100644 --- a/tools/editor/plugins/script_editor_plugin.cpp +++ b/tools/editor/plugins/script_editor_plugin.cpp @@ -1932,6 +1932,7 @@ void ScriptEditor::edit(const Ref