diff options
author | PucklaMotzer09 <jonaas.pucher000000@gmail.com> | 2022-09-28 17:09:45 +0200 |
---|---|---|
committer | PucklaJ <jonaas.pucher000000@gmail.com> | 2023-09-25 23:41:31 +0200 |
commit | d2e651f403b7f583a66e37ef0331362ad70fd1c3 (patch) | |
tree | 9713b2ebebd061732618e1e3a817388976ca7d47 /scene/gui/code_edit.h | |
parent | 43b9e89a07bb0926fb66bddbf98981d25a5cccee (diff) | |
download | redot-engine-d2e651f403b7f583a66e37ef0331362ad70fd1c3.tar.gz |
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.
Diffstat (limited to 'scene/gui/code_edit.h')
-rw-r--r-- | scene/gui/code_edit.h | 3 |
1 files changed, 3 insertions, 0 deletions
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(); }; |