From d2e651f403b7f583a66e37ef0331362ad70fd1c3 Mon Sep 17 00:00:00 2001 From: PucklaMotzer09 Date: Wed, 28 Sep 2022 17:09:45 +0200 Subject: Add Duplicate Lines shortcut to CodeTextEditor This keyboard shortcut has been made with inspiration from the VS Code keyboard shortcut editor.action.copyLinesDownAction. It duplicates all selected lines and inserts them below no matter where the caret is within the line. --- scene/gui/code_edit.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'scene/gui/code_edit.h') diff --git a/scene/gui/code_edit.h b/scene/gui/code_edit.h index e688af2bda..97c435b52d 100644 --- a/scene/gui/code_edit.h +++ b/scene/gui/code_edit.h @@ -486,6 +486,9 @@ public: void set_symbol_lookup_word_as_valid(bool p_valid); + /* Text manipulation */ + void duplicate_lines(); + CodeEdit(); ~CodeEdit(); }; -- cgit v1.2.3