Keyboard Shortcuts

PlayJS provides keyboard shortcuts for common actions so you can stay in the flow without reaching for the mouse.

General

ActionmacOSWindows / Linux
Run code⌘RCtrl+R
Stop execution⇧⌘RCtrl+Shift+R
New tab⌘TCtrl+T
Close tab⌘WCtrl+W
Close window⇧⌘WCtrl+Shift+W

Editor

ActionmacOSWindows / Linux
Find⌘FCtrl+F
Find and Replace⌘⌥FCtrl+Alt+F
Clear editor⌘⌥KCtrl+Alt+K
Format code (Prettier)⌥⇧FAlt+Shift+F
Reset font size⌘0Ctrl+0
Increase font size⌘+Ctrl++
Decrease font size⌘-Ctrl+-
ActionmacOSWindows / Linux
Undo⌘ZCtrl+Z
Redo⇧⌘ZCtrl+Shift+Z

Tips

  • Format on demand — Use ⌥⇧F (macOS) / Alt+Shift+F (Windows/Linux) to format your code with Prettier at any time. Formatting rules are configurable in Preferences → Formatting.
  • Quick execution control⌘R / Ctrl+R and ⇧⌘R / Ctrl+Shift+R give you instant control over code execution, useful when Auto Run is disabled.
  • Font size shortcuts — Quickly adjust the editor font size during presentations or pair programming with ⌘+ / Ctrl++, ⌘- / Ctrl+-, and ⌘0 / Ctrl+0 to reset.
© 2026 QI LEI. All rights reserved.