Skip to content

Keyboard shortcuts

On a Mac, Ctrl is ⌘, Shift is ⇧ and Alt is ⌥.

Shortcut Action
Ctrl+S Save the file
Ctrl+Shift+S Download the file
Shift+Alt+F Format the document
Ctrl+Shift+C Compile the contract (SmartC editor)

The editors are built on Monaco, the editor of VS Code, so its usual shortcuts work too. These differ on a Mac beyond swapping Ctrl for ⌘:

Action Windows/Linux Mac
Find Ctrl+F ⌘F
Replace Ctrl+H ⌥⌘F
Comment a line Ctrl+/ ⌘/
Suggestions Ctrl+Space ⌃Space (Control, not Command)
Command palette F1 F1
Shortcut Action
Ctrl+B Show or hide the sidebar
Alt+T Jump to the notifications
Enter Confirm a dialog