Difference between revisions of "Manual:Script Editor"
Jump to navigation
Jump to search
(→Editor shortcuts: add comment shortcut) |
(→Editor shortcuts: alternate background color improve readability) |
||
Line 7: | Line 7: | ||
{| style="width: 500px; border-bottom:solid 5px #882222;" | {| style="width: 500px; border-bottom:solid 5px #882222;" | ||
! colspan="2" style="color:white; background-color:#882222; text-align:left;" | Navigation shortcuts | ! colspan="2" style="color:white; background-color:#882222; text-align:left;" | Navigation shortcuts | ||
− | |- | + | |- |
| style="font-family: monospace, monospace;" | Ctrl+Tab | | style="font-family: monospace, monospace;" | Ctrl+Tab | ||
| Focus next section | | Focus next section | ||
− | |- | + | |- style="background-color:#ffefef;" |
| style="font-family: monospace, monospace;" | Ctrl+Shift+Tab | | style="font-family: monospace, monospace;" | Ctrl+Shift+Tab | ||
| Focus previous section | | Focus previous section | ||
Line 21: | Line 21: | ||
| style="font-family: monospace, monospace;" | Ctrl+A | | style="font-family: monospace, monospace;" | Ctrl+A | ||
| Select all text | | Select all text | ||
− | |- | + | |- style="background-color:#ffefef;" |
| style="font-family: monospace, monospace;" | Ctrl+Left click | | style="font-family: monospace, monospace;" | Ctrl+Left click | ||
| Add cursors | | Add cursors | ||
Line 27: | Line 27: | ||
| style="font-family: monospace, monospace;" | Ctrl+Alt+Up | | style="font-family: monospace, monospace;" | Ctrl+Alt+Up | ||
| Extend custors up | | Extend custors up | ||
− | |- | + | |- style="background-color:#ffefef;" |
| style="font-family: monospace, monospace;" | Ctrl+Alt+Down | | style="font-family: monospace, monospace;" | Ctrl+Alt+Down | ||
| Extend custors down | | Extend custors down | ||
Line 33: | Line 33: | ||
| style="font-family: monospace, monospace;" | Esc | | style="font-family: monospace, monospace;" | Esc | ||
| Switch to one cursor | | Switch to one cursor | ||
− | |- | + | |- style="background-color:#ffefef;" |
| style="font-family: monospace, monospace;" | Ctrl+D | | style="font-family: monospace, monospace;" | Ctrl+D | ||
| Select words at the cursor | | Select words at the cursor | ||
Line 39: | Line 39: | ||
| style="font-family: monospace, monospace;" | Ctrl+L | | style="font-family: monospace, monospace;" | Ctrl+L | ||
| Select next lines | | Select next lines | ||
− | |- | + | |- style="background-color:#ffefef;" |
| style="font-family: monospace, monospace;" | Ctrl+Shift+L | | style="font-family: monospace, monospace;" | Ctrl+Shift+L | ||
| Select previous lines | | Select previous lines | ||
Line 50: | Line 50: | ||
| style="font-family: monospace, monospace;" | Ctrl+] | | style="font-family: monospace, monospace;" | Ctrl+] | ||
| Indent right | | Indent right | ||
− | |- | + | |- style="background-color:#ffefef;" |
| style="font-family: monospace, monospace;" | Ctrl+[ | | style="font-family: monospace, monospace;" | Ctrl+[ | ||
| Indent left | | Indent left | ||
Line 56: | Line 56: | ||
| style="font-family: monospace, monospace;" | Ctrl+Shift+D | | style="font-family: monospace, monospace;" | Ctrl+Shift+D | ||
| Duplicate | | Duplicate | ||
− | |- | + | |- style="background-color:#ffefef;" |
| style="font-family: monospace, monospace;" | Ctrl+/ | | style="font-family: monospace, monospace;" | Ctrl+/ | ||
| Toggle selection comment | | Toggle selection comment | ||
Line 62: | Line 62: | ||
| style="font-family: monospace, monospace;" | Alt+Backspace | | style="font-family: monospace, monospace;" | Alt+Backspace | ||
| Delete rest of the word left | | Delete rest of the word left | ||
− | |- | + | |- style="background-color:#ffefef;" |
| style="font-family: monospace, monospace;" | Ctrl+Backspace | | style="font-family: monospace, monospace;" | Ctrl+Backspace | ||
| | | | ||
− | |- | + | |- |
| style="font-family: monospace, monospace;" | Shift+Backspace | | style="font-family: monospace, monospace;" | Shift+Backspace | ||
| | | | ||
− | |- | + | |- style="background-color:#ffefef;" |
| style="font-family: monospace, monospace;" | Alt+Delete | | style="font-family: monospace, monospace;" | Alt+Delete | ||
| Delete rest of the word right | | Delete rest of the word right | ||
− | |- | + | |- |
| style="font-family: monospace, monospace;" | Ctrl+Delete | | style="font-family: monospace, monospace;" | Ctrl+Delete | ||
| | | | ||
− | |- | + | |- style="background-color:#ffefef;" |
| style="font-family: monospace, monospace;" | Shift+Delete | | style="font-family: monospace, monospace;" | Shift+Delete | ||
| | | | ||
|} | |} |
Revision as of 15:56, 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 |