🩳 Short-keys
Mercury has various shortkeys that help you navigate the editor more quickly during live performances, both in the Mercury4Max as in the MercuryPlayground versions.
alt + /
for non UK/US keyboards can be an issue, because the /
is not a unique key but above the 7
so you need to use shift
. This seems to not work in the browser editor
When you use an external editor like Pulsar the Overall Shortkeys
apply, but all other shortkeys for navigating and editting are based on the preferences of that editor.
If you encounter any other issues please file a report via the steps in Troubleshooting.
Overall Shortkeys
Combination | Function |
---|---|
Alt/Option/Ctrl + Enter | Evaluate code |
Alt/Option/Ctrl + . | Silence the sound |
Alt/Option/Ctrl + / | (Un)Comment a line or multiple lines of code |
Shortkeys in Mercury4Max
At the moment shortkeys are defaulted for Mac platforms, for Windows you can adjust them via the Settings.
Editor Navigation
Combination | Function |
---|---|
Arrow Left | Move left one character |
Arrow Down | Go down one line |
Arrow Right | Move right by one character |
Arrow Up | Go up one line |
Alt + A | Move left one character |
Alt + S | Go down one line |
Alt + D | Move right one character |
Alt + W | Go up one line |
Alt + Arrow Up | Jump to the top of editor (end of the line) |
Alt + Arrow Down | Jump to the end of editor (end of the line) |
Alt + Arrow Left | Jump to the beginning of the line |
Alt + Arrow Right | Jump to the end of the line |
Alt + , | Disable/enable the editor |
Editor Editing
Copy/Paste/Paste-Replace/Delete only works inside the editor. In order to input or output code to a different application you have to save the file as a .txt
or open a .txt
file from disk.
Combination | Function |
---|---|
Alt + X | Delete the line where the cursor is located |
Alt + C | Copy the line where the cursor is located |
Alt + V | Paste insert a line of code where the cursor is located |
Alt + P | Paste replace a line where the cursor is located |
Customize Shortkeys
You can customize the shortkeys by opening the Setup Shortkeys
under Settings
in the menubar. You can also reset to the default key commands.
- Select the key you would like to customize in the dropdown menu on the top.
- Click
change keycommand
, it now displayswaiting for keys...
. - Hit the key combination you would like to use for this command and release the keys to store.
- Check if stored correctly in the scroll-menu below. Every command displays the shortcut and keycode.
Shortkeys in MercuryPlayground
Editor Navigation
Combination | Function |
---|---|
Arrow Left | Move left one character |
Arrow Down | Go down one line |
Arrow Right | Move right by one character |
Arrow Up | Go up one line |
Ctrl + P | Move up one line |
Ctrl + N | Move down one line |
Ctrl + F | Move forward one character to the right |
Ctrl + B | Move back one character to the left |
Ctrl + A | Jump to the beginning of the line |
Ctrl + V | Jump to last character in the code |
Cmd + Arrow Down | Jump to end of the code |
Cmd + Arrow Up | Jump to beginning of the code |
Editor Editing
Combination | Function |
---|---|
Cmd + C | Copy the selected code or if nothing selected copy the entire line |
Cmd + V | Paste whatever is currently in the clipboard |
Cmd + Z | Undo editing of the code |
Cmd + Shift + Z | Redo editing of the code |
Alt + Right | Jump a word to the right |
Alt + Left | Jump a word to the left |
Ctrl + O | Enter a new line |
Cmd + D | Delete the entire line |
Ctrl + D | Delete character on the right |
Ctrl + H | Backspace character on the left |
Ctrl + K | Delete everything on right side of the cursor |
Ctrl + Shift + H | Hide the code editor |