-
Notifications
You must be signed in to change notification settings - Fork 48
Keyboard shortcuts
Vadim Dyachenko edited this page Nov 17, 2018
·
6 revisions
The following are the keyboard shortcuts supported in GMEdit.
On Mac, Ctrl is generally substituted by Meta key instead.
Editor tabs:
Shortcut (main) | Shortcut (alt.) | Description |
---|---|---|
Ctrl + Tab | Ctrl + Page Down | Next Tab |
Ctrl + Shift + Tab | Ctrl + Page Up | Previous Tab |
Ctrl + S | Save tab | |
Ctrl + Shift + S | Save all tabs | |
Ctrl + W | Close tab | |
Ctrl + Shift + W | Close all but this tab | |
Ctrl + 1 .. Ctrl + 8 | Switch between first 8 tabs open | |
Ctrl + 9 | Switch to last tab |
Project-wide:
Shortcut (main) | Shortcut (alt.) | Description |
---|---|---|
Ctrl + R | Reload project (if changes were made externally) | |
Ctrl + T | Open resource search | |
Ctrl + Shift + F | Open global search | |
Ctrl + W | Close project (if no tabs are open) |
Code in general:
Shortcut (main) | Shortcut (alt.) | Description |
---|---|---|
Ctrl + Alt + H | Show raw list of keyboard shortcuts | |
Ctrl + , | Code editor settings |
Code navigation:
Shortcut (main) | Shortcut (alt.) | Description |
---|---|---|
Ctrl + Left | Skip 1 word to the left | |
Ctrl + Right | Skip 1 word to the right | |
Ctrl + Up | Skip to the previous fold region (non-code-block) start | |
Ctrl + Down | Skip to the next fold region (non-code-block) start | |
Ctrl + Shift + Up | Skip to the previous definition (script, event, moment, section) start | |
Ctrl + Shift + Down | Skip to the next definition | |
Alt + Left | Home | Skip to line start |
Alt + Right | End | Skip to line end |
Ctrl + Home | Skip to file start | |
Ctrl + End | Skip to file end | |
Ctrl + G | Open local navigation dialog (go to line/subscript/event) |
Code folding:
Shortcut (main) | Shortcut (alt.) | Description |
---|---|---|
Alt + F2 | Collapse/expand the nearest fold | |
Alt + L | Fold selected text | |
Alt + Shift + L | Unfold everything in selection | |
Ctrl + M | Fold all | |
Ctrl + U | Unfold all |
Code editing:
Shortcut (main) | Shortcut (alt.) | Description |
---|---|---|
Ctrl + Backspace | Remove word before cursor | |
Ctrl + Delete | Remove word after cursor | |
Ctrl + Shift + Backspace | Remove text between line start and cursor | |
Ctrl + Shift + Delete | Remove text between cursor and line end | |
Ctrl + X | Cut | |
Ctrl + C | Copy | |
Ctrl + V | Paste | |
Ctrl + F | Find | |
Ctrl + H | Replace | |
Ctrl + K | Ctrl + / | Toggle comment around selection |
Tab | Indent selection | |
Shift + Tab | Outdent selection |
- Smart auto-completion
- Types
- JSDoc tags (incl. additional ones)
- @hint tag (mostly 2.3)
- `vals: $v1 $v2` (template strings)
- #args (pre-2.3 named arguments)
- ??= (for pre-GM2022 optional arguments)
- ?? ?. ?[ (pre-GM2022 null-conditional operators)
- #lambda (pre-2.3 function literals)
- => (2.3+ function shorthands)
- #import (namespaces and aliases)
- v:Type (local variable types)
- #mfunc (macros with arguments)
- #gmcr (coroutines)