Keyboard Shortcuts

View Markdown

Last edited on 2026-11-11

The table below lists the keyboard shortcuts based on the current Electron core menu configuration. Internal editor operations (formatting, multiple cursors, in-file navigation) follow the editor's default behavior; refer to the keys actually displayed in the menu bar.

Mac OS Shortcut Windows Shortcut Description
⌘ + Q ctrl + Q Quit Developer Tools
⇧ + ⌘ + N shift + ctrl + N New Project
⇧ + ⌘ + W shift + ctrl + W Close Current Project
File
⌘ + N ctrl + N New File
⌘ + S ctrl + S Save File
⇧ + ⌘ + S shift + ctrl + S Save All Files
⌘ + W ctrl + W Close Current File
Edit
⌘ + Z ctrl + Z Undo
⇧ + ⌘ + Z shift + ctrl + Z Redo
⌘ + C ctrl + C Copy
⌘ + X ctrl + X Cut
⌘ + V ctrl + V Paste
⌘ + [ ctrl + [ Indent Code Left
⌘ + ] ctrl + ] Indent Code Right
⇧ + ⌥ + F shift + alt + F Format Code
⌥ + ⬆ alt + ⬆ Move Line Up
⌥ + ⬇ alt + ⬇ Move Line Down
⇧ + ⌥ + ⬆ shift + alt + ⬆ Copy Line Up
⇧ + ⌥ + ⬇ shift + alt + ⬇ Copy Line Down
⌘ + P ctrl + P Go to File
⌘ + E ctrl + E Go to Recent File
⌘ + ⌥ + ⬅ ctrl + alt + ⬅ Open File to the Left in Editor
⌘ + ⌥ + ➡ ctrl + alt + ➡ Open File to the Right in Editor
⌘ + F ctrl + F Find in File
⇧ + ⌘ + F shift + ctrl + F Find in Project
Tools
⌘ + R ctrl + R Compile Project
⇧ + ⌘ + P shift + ctrl + P Preview
⇧ + ⌘ + R shift + ctrl + R Real Device Debugging. When the editor has focus, this shortcut may still be occupied by the editor's replace function
⇧ + ⌘ + U shift + ctrl + U Upload
UI
⌘ + , ctrl + , Open General Settings
⇧ + ⌘ + D shift + ctrl + D Show or Hide Simulator
⇧ + ⌘ + E shift + ctrl + E Show or Hide Editor
⇧ + ⌘ + I shift + ctrl + I Show or Hide Debugger

⌘ + B is no longer the shortcut for compiling. Use Ctrl(⌘) + R to compile.