summaryrefslogtreecommitdiffstats
path: root/scene/gui/code_edit.h
diff options
context:
space:
mode:
authorPucklaMotzer09 <jonaas.pucher000000@gmail.com>2022-09-28 17:09:45 +0200
committerPucklaJ <jonaas.pucher000000@gmail.com>2023-09-25 23:41:31 +0200
commitd2e651f403b7f583a66e37ef0331362ad70fd1c3 (patch)
tree9713b2ebebd061732618e1e3a817388976ca7d47 /scene/gui/code_edit.h
parent43b9e89a07bb0926fb66bddbf98981d25a5cccee (diff)
downloadredot-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.h3
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();
};