Keyboard Shortcuts
PlayJS provides keyboard shortcuts for common actions so you can stay in the flow without reaching for the mouse.
General
| Action | macOS | Windows / Linux |
|---|
| Run code | ⌘R | Ctrl+R |
| Stop execution | ⇧⌘R | Ctrl+Shift+R |
| New tab | ⌘T | Ctrl+T |
| Close tab | ⌘W | Ctrl+W |
| Close window | ⇧⌘W | Ctrl+Shift+W |
Editor
| Action | macOS | Windows / Linux |
|---|
| Find | ⌘F | Ctrl+F |
| Find and Replace | ⌘⌥F | Ctrl+Alt+F |
| Clear editor | ⌘⌥K | Ctrl+Alt+K |
| Format code (Prettier) | ⌥⇧F | Alt+Shift+F |
| Reset font size | ⌘0 | Ctrl+0 |
| Increase font size | ⌘+ | Ctrl++ |
| Decrease font size | ⌘- | Ctrl+- |
Navigation
| Action | macOS | Windows / Linux |
|---|
| Undo | ⌘Z | Ctrl+Z |
| Redo | ⇧⌘Z | Ctrl+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.