MenuEveryday / Tabs and the Home screen

Docs / Everyday

Tabs and the Home screen

Each tab holds one Snippet. Open them from the Home screen or the +, name them, move them, close them.

On this page

Each tab holds one Snippet, with its own output. Your open tabs are saved as you work, and they come back when you open JSpark again.

The Home screen

When no Snippet is open, the window shows the Home screen: What are you trying out?, and a card for each Starter. Click a card to open a new Snippet with that Starter’s demo.

The Home screen: one card for each Starter, from Node.js to Canvas.

You see the Home screen when you close the last tab. A Starter that needs JSpark+ wears the JSpark+ mark. See Starters for what each one starts.

Open a Snippet in a tab

  1. Click + at the end of the tab strip.
  2. Pick a Starter from the list.

A new tab opens on that Starter’s demo, and with Run as you type on, the demo runs by itself.

The + opens the list of Starters; picking Svelte opens a tab on the Svelte demo, and its page appears.

To open an empty Snippet of the same kind as the open one, press ⌘T or Ctrl+T, or choose File → New Snippet. It keeps the open Snippet’s Starter icon, Language and Load Mode.

From the The Library, Open in new tab opens a copy of a Saved Snippet in a tab of its own.

Move between tabs

  • Click a tab.
  • Press ⌘⇧] or Ctrl+Tab for the next tab and ⌘⇧[ or Ctrl+Shift+Tab for the previous one. They are also in the Window menu.
  • When a tab has focus, press ← or → to move to the tab beside it.

While the Timeline is open, the tab strip is hidden. Press Esc to leave it first.

Name and move tabs

A tab shows the Snippet’s name. Until you give it one, the tab shows the Snippet’s first line of code, and an empty Snippet shows empty.

To rename a tab:

  1. Double-click the tab, or press F2 when it has focus.
  2. Type the new name, and press Enter. Press Esc to keep the old one.

Clear the name and press Enter to go back to the first line of code.

To move a tab, drag it along the strip. A line shows where it will go. With a tab focused, you can also press ⌥← or Alt+← or ⌥→ or Alt+→.

Close tabs

  • Click the × on the tab.
  • Press ⌘W or Ctrl+W, or choose File → Close Snippet, to close the open tab.
  • Right-click a tab, or press ⇧F10 when it has focus, to close several at once.
A tab's menu: close it, close the other two, or close the one to its right.

Closing the last tab shows the Home screen. On the Home screen, ⌘W or Ctrl+W closes the window. File → Close Window (⌘⇧W or Ctrl+Shift+W) closes it with tabs open.

When JSpark asks first

If a tab has changes that are not in the Library, JSpark asks before closing it. Press Close to close it and lose those changes, or Back to keep it open.

Closing a changed tab asks first. Back keeps it open.

A tab still showing its Starter’s demo, or a Saved Snippet just as you opened it, closes without asking. To stop the question, turn off Settings → General → Ask before closing unsaved work.

More than 3 tabs JSpark+

JSpark keeps up to 3 tabs open. JSpark+ keeps as many as you like. In JSpark, opening a fourth shows a message instead, and nothing is opened or closed. Close a tab to open another.

In JSpark, a fourth tab shows this message. Not now closes it.

If more than 3 tabs are already open in JSpark, for example after a Yearly key lapses, they all stay open. JSpark only stops you opening another. See JSpark+.

Good to know

  • A tab keeps its own output. Moving to another tab and back does not change it.
  • A web page keeps its state while its tab is not the one on screen.
  • To keep a Snippet after you close its tab, see Where your work goes.

The pictures show JSpark on a Mac. On Windows, the window looks a little different and uses Ctrl for ⌘, but everything works the same way.

Esc

Type to search every docs page.