summaryrefslogtreecommitdiffstats
path: root/doc/classes
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 /doc/classes
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 'doc/classes')
-rw-r--r--doc/classes/CodeEdit.xml6
1 files changed, 6 insertions, 0 deletions
diff --git a/doc/classes/CodeEdit.xml b/doc/classes/CodeEdit.xml
index d9146cf604..9b4b3aa36e 100644
--- a/doc/classes/CodeEdit.xml
+++ b/doc/classes/CodeEdit.xml
@@ -152,6 +152,12 @@
Perform an indent as if the user activated the "ui_text_indent" action.
</description>
</method>
+ <method name="duplicate_lines">
+ <return type="void" />
+ <description>
+ Duplicates all lines currently selected with any caret. Duplicates the entire line beneath the current one no matter where the caret is within the line.
+ </description>
+ </method>
<method name="fold_all_lines">
<return type="void" />
<description>