Difference between revisions of "Manual:Editor"

From Mudlet
Jump to navigation Jump to search
(Replace image with text for a11y & also include keyboard navigation from PR #2979)
(→‎Editor shortcuts: add comment shortcut)
Line 56: Line 56:
 
| style="font-family: monospace, monospace;" | Ctrl+Shift+D
 
| style="font-family: monospace, monospace;" | Ctrl+Shift+D
 
| Duplicate
 
| Duplicate
 +
|-
 +
| style="font-family: monospace, monospace;" | Ctrl+/
 +
| Toggle selection comment
 
|-
 
|-
 
| style="font-family: monospace, monospace;" | Alt+Backspace
 
| style="font-family: monospace, monospace;" | Alt+Backspace

Revision as of 12:34, 30 August 2019

Editor

Editor shortcuts

The following shortcuts are available in the Lua code editor:

Navigation shortcuts
Ctrl+Tab Focus next section
Ctrl+Shift+Tab Focus previous section


Selection shortcuts
Ctrl+A Select all text
Ctrl+Left click Add cursors
Ctrl+Alt+Up Extend custors up
Ctrl+Alt+Down Extend custors down
Esc Switch to one cursor
Ctrl+D Select words at the cursor
Ctrl+L Select next lines
Ctrl+Shift+L Select previous lines


Editing shortcuts
Ctrl+] Indent right
Ctrl+[ Indent left
Ctrl+Shift+D Duplicate
Ctrl+/ Toggle selection comment
Alt+Backspace Delete rest of the word left
Ctrl+Backspace
Shift+Backspace
Alt+Delete Delete rest of the word right
Ctrl+Delete
Shift+Delete