From 6687484958412ff0f3bd6d97cbc1fcebc7ae64d2 Mon Sep 17 00:00:00 2001 From: geequlim Date: Sun, 25 Jun 2017 17:20:01 +0800 Subject: Better user expirence with external text editors. Implements open_in_external_editor for subclasses of ScriptLanguage. Add option 'Debug with external editor' to debug menu to control the behavoir of script opened by editor. --- editor/plugins/script_editor_plugin.cpp | 24 +++++++++++++++++------- editor/plugins/script_editor_plugin.h | 1 + editor/plugins/script_text_editor.cpp | 2 ++ 3 files changed, 20 insertions(+), 7 deletions(-) (limited to 'editor/plugins') diff --git a/editor/plugins/script_editor_plugin.cpp b/editor/plugins/script_editor_plugin.cpp index f3941d6a16..0024870665 100644 --- a/editor/plugins/script_editor_plugin.cpp +++ b/editor/plugins/script_editor_plugin.cpp @@ -313,6 +313,13 @@ void ScriptEditor::_goto_script_line(REF p_script, int p_line) { editor->push_item(p_script.ptr()); + if (bool(EditorSettings::get_singleton()->get("text_editor/external/use_external_editor"))) { + + Ref