Script Editor Keyboard Shortcuts
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I stumbled across a keyboard shortcut in the script editor that I use in my external editor which prompted me to explore what other keyboard shortcuts we available; other than the usual copy, paste, select all, etc. Turns out there are a lot of them. So for those who script a lot in the editor, here is a link to default keyboard shortcuts for the ace editor. Not all of the shortcuts listed work but it looks like the most useful ones work very well. 🙂
https://github.com/ajaxorg/ace/wiki/Default-Keyboard-Shortcuts
Some especially useful ones are:
- ctrl-/ comment/uncomment the line or selection
- alt-up/down move a line or selection up or down
- alt-shift-down/up copy a line or selection down or up
- ctrl-d delete the line
- ctrl-u change selection to uppercase
- ctrl-alt-up/down add additional cursor up or down
- ctrl-click add additional cursors wherever you click
- ctrl-h find and replace
- alt-0 fold all
- alt-shift-0 unfold all
- ctrl-, Probably use this one with caution. It opens up the editor settings panel.