MenuReference / Keyboard shortcuts

Docs / Reference

Keyboard shortcuts

Every shortcut, on Mac and on Windows.

On this page

Most shortcuts are also in the menu bar (on Windows, in the Menu button at the left end of the tabs), next to the command they run. A command that can't do anything at the moment is greyed out there.

Snippets and tabs

Snippets and tabs
DoesMacWindows
New SnippetAnother Snippet like the one in front: the same Kind, Language and Load Mode.⌘TCtrl+T
Close SnippetOn the Home screen, it closes the window.⌘WCtrl+W
Reopen Closed SnippetThe Snippet you closed last, back where it was.⌘⇧TCtrl+Shift+T
Close Window⌘⇧WCtrl+Shift+W
Open…A copy of a code file, in a new tab.⌘OCtrl+O
Save to File…The Snippet’s code, written to a new file.⌘⇧SCtrl+Shift+S
Show Previous Snippet⌘⇧[Ctrl+Shift+Tab
Show Next Snippet⌘⇧]Ctrl+Tab
Show Snippet 1 to 8The tab in that place, counted from the left.⌘1 – ⌘8Ctrl+1 – Ctrl+8
Show the last SnippetThe last tab, however many are open.⌘9Ctrl+9

Opening and saving files: Open and save files. The Snippet shortcuts are also in Window → Show Snippet.

When a tab has keyboard focus, these keys act on the tab strip:

On a focused tab
DoesMacWindows
Open the tab to the left or right←→←→
Open the first or last tabHomeEndHomeEnd
Move the tab left or right⌥←⌥→Alt+←Alt+→
Rename the tab↵F2EnterF2
Close the tab⌫⌦BackspaceDelete
Open the tab’s menu⇧F10Shift+F10Menu

Running

Running
DoesMacWindows
RunWorks wherever the focus is in the window.⌘↵Ctrl+Enter
Stop⌘.Ctrl+.
TimelineOpens the Timeline, and closes it again. Node Snippets only.⌘⇧↵Ctrl+Shift+Enter
Clear Console⌘KCtrl+K

Timeline

These work while the Timeline is open.

Timeline
DoesMacWindows
Previous Step⌘←Ctrl+←
Next Step⌘→Ctrl+→
Play or pause AutoplaySpaceSpace
Record again⌘↵Ctrl+Enter
Leave the TimelineEscEsc

Outside the Timeline, ⌘← or Ctrl+← and ⌘→ or Ctrl+→ keep their usual meaning in the editor. In the Timeline, New Snippet, Open…, Reopen Closed Snippet, Show Snippet, Clear Console and Format Code are greyed out.

Editor

Editor
DoesMacWindows
Format Code⇧⌥FShift+Alt+F
Show suggestions⌃SpaceCtrl+Space
Find⌘FCtrl+F
Select the next match of the selection⌘DCtrl+D
Go to a line⌘⌥GCtrl+Alt+G
Comment or uncomment the line⌘/Ctrl+/
Move the line up or down⌥↑⌥↓Alt+↑Alt+↓
Copy the line up or down⇧⌥↑⇧⌥↓Shift+Alt+↑Shift+Alt+↓
Delete the line⌘⇧KCtrl+Shift+K
Indent or outdentTab⇧TabTabShift+Tab
Fold or unfold the block⌘⌥[⌘⌥]Ctrl+Shift+[Ctrl+Shift+]
Undo⌘ZCtrl+Z
Redo⌘⇧ZCtrl+Y

Windows

Windows
DoesMacWindows
Settings…⌘,Ctrl+,
Library⌘⇧LCtrl+Shift+L
Search SettingsIn the Settings window.⌘FCtrl+F
Clear a search boxIn Settings, the Library and Packages.EscEsc
Move a Starter up or downJSpark+In Settings → Starters.⌥↑⌥↓Alt+↑Alt+↓

Packages has no shortcut: open it from Window → Packages. In Settings, the Library or Packages, ⌘W or Ctrl+W closes that window, not the Snippet behind it.

Esc

Type to search every docs page.

JSpark is downloading

When you open JSpark-Setup.exe, Windows may stop it once, because the installer isn’t code-signed yet. If the file came from jspark.app:

A blue Windows box, “Windows protected your PC”: Microsoft Defender SmartScreen prevented an unrecognised app from starting. Under it, the link More info, and the button Don’t run.

1Click More info.

The same box after More info: Application JSpark-Setup-1.4.0.exe, Publisher Unknown publisher, and the buttons Run anyway and Don’t run.

2Then click Run anyway.

You see this only once: updates install inside the app. More in Install JSpark.