Keyboard shortcuts

Every default keyboard shortcut in JSLab, grouped by category and generated from its keybindings.

These are JSLab’s default keyboard shortcuts on macOS, grouped by category and sorted by chord within each group. Every shortcut here is also a command, and can be run from the command palette.

Each entry adds a binding on top of the defaults, for example an unused chord for Run:

[{ "key": "cmd+alt+n", "command": "run.start" }]

Remove a default without replacing it by prefixing its command id with -, for example dropping Clear Output’s default chord:

[{ "key": "cmd+k", "command": "-output.clear" }]

Generated from JSLab’s command registry.

Every command has a place in the palette, and the common ones have shortcuts you can learn as you go.

Run

ShortcutCommand
⇧⌘RStop
⌘RRun
⌥⌘AToggle Auto Run
⌥⌘LToggle Auto Log
⌥⌘RKill

File

ShortcutCommand
⇧⌘SSave As…
⌘OOpen…
⌘SSave

Tabs

ShortcutCommand
⇧⌘TReopen Closed Tab
⌃⇥Next Tab
⌃⇧⇥Previous Tab
⌘1Go to Tab 1
⌘2Go to Tab 2
⌘3Go to Tab 3
⌘4Go to Tab 4
⌘5Go to Tab 5
⌘6Go to Tab 6
⌘7Go to Tab 7
⌘8Go to Tab 8
⌘9Go to Tab 9
⌘TNew Tab
⌘WClose Tab
⌥⌘←Previous Tab
⌥⌘→Next Tab
⌥⌘TClose Other Tabs

Edit

ShortcutCommand
⇥Expand Snippet
⇧⌘↩Insert Line Before
⇧⌘DDuplicate Line
⇧⌘F5Reverse Sort Lines (Case-Insensitive)
⇧⌘F9Clear All Logpoints
⇧⌘GFind Previous
⇧⌘LSplit Selection into Lines
⇧⌘MSelect to Bracket
⇧⌘SpaceExpand Selection
⌃⇧↑Add Cursor Above
⌃⇧↓Add Cursor Below
⌃⇧KDelete Line
⌃⌘↑Move Line Up
⌃⌘↓Move Line Down
⌃GGo to Line…
⌃SpaceTrigger Suggestions
⌘/Toggle Line Comment
⌘↩Insert Line After
⌘⌫Delete to Line Start
⌘DSelect Next Occurrence
⌘FFind
⌘F1Show Diagnostic
⌘F5Sort Lines (Case-Insensitive)
⌘GFind Next
⌘JJoin Lines
⌘KClear Output
⌘LSelect Line
⌘MGo to Bracket
⌥⇧⌘/Toggle Magic Comment
⌥⌘/Toggle Block Comment
⌥⌘FReplace
F1Show Hover
F5Sort Lines
F9Toggle Logpoint

Format

ShortcutCommand
⌥⇧FFormat Code

View

ShortcutCommand
⇧⌘PShow Command Palette
⌃⌘FToggle Full Screen
⌘-Zoom Out
⌘=Zoom In
⌘0Actual Size
⌥⌘\Toggle Vertical Split
⌥⌘EFocus Editor
⌥⌘OFocus Output
⌥⌘WToggle Web View

Tools

ShortcutCommand
⌃⌘IAI Chat…
⌘BSnippets…
⌘INPM Packages…

JSLab

ShortcutCommand
⌘,Settings…

Last updated