1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

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.
This commit is contained in:
PucklaMotzer09
2022-09-28 17:09:45 +02:00
committed by PucklaJ
parent 43b9e89a07
commit d2e651f403
11 changed files with 174 additions and 0 deletions

View File

@@ -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>