MenuSettings and looks / Layout

Docs / Settings and looks

Layout

Put the code and the output side by side or stacked, and give each the room it needs.

On this page

The window has two sides: your code, and its output. You choose how they sit, and JSpark keeps the choice for every tab and for the next launch.

The rail down the left edge shows a name under each button. For a narrower rail with icons only, turn off Settings → General → Label the menu. It works the same in JSpark and JSpark+.

Side by Side or Stacked

  1. Click the Layout button at the right end of the tab strip.
  2. Under Panes, choose Side by side or Stacked.

The same choices are in the View menu: Side by Side and Stacked. Side by side is the default.

The Layout menu, open under its button: what to show, the two ways the panes sit, the swap, and Keep on top.

Stacked puts the code on top and the output under it.

Stacked: the code on top, the console under it.

When the window is too narrow for two columns of code, JSpark stacks the panes anyway, and the Layout button shows them stacked. The menu then says Too narrow for columns. Widen to switch back. A larger text size needs a wider window for columns.

Show only the code or the output

To give one side the whole window, open the Layout menu and, under Show, choose Code only or Output only. Code and output brings both back.

Nothing is lost when a side is put away. A page keeps running, out of sight, and the code keeps its undo history.

Swap Panes

To put the output first, on the left or on top, choose Output first in the Layout menu, orView → Swap Panes. Once swapped, the menu offers Code first to swap them back. Each pane keeps its size when it moves.

Keep JSpark on top

To keep a page or the console in view while you work in your editor or browser, open the Layout menu and choose Keep on top. JSpark’s windows then stay above other apps’ windows. Choose it again to turn it off.

It stays on until you turn it off, across restarts. It works the same in JSpark and JSpark+.

Resize the panes

  • Drag the line between the two panes. Each pane can have from 15% to 85% of the room.
  • Double-click the line to share the room evenly again.
  • With the keyboard, move to the line and use the arrow keys; Home and End go to the ends, and Enter shares the room evenly.

JSpark remembers where you left the line.

How the output arranges itself

Everything opposite the code is one group: the console alone, the page or its console for a web page, or the console and the Timeline’s panels while you step through a Run. You don’t choose how this group is arranged. It arranges itself from the shape of the room it has.

The output’s roomIn the Timeline
Three times as wide as tall, or moreConsole, Variables and the Call Stack side by side
Wider than tallConsole beside Variables, with the Call Stack under Variables
Taller than wide, up to twiceConsole above Variables and the Call Stack, side by side
More than twice as tall as wideConsole, Variables and the Call Stack stacked
Side by side, the output is taller than wide: the console on top, Variables and the Call Stack under it.
  • Turn a panel off, and the others take its room.
  • The lines between the panels can be dragged too. Where you leave them is kept when the arrangement changes.
  • The Call Stack is JSpark+: The Call Stack.
  • A web page and its console are two tabs, Page and Console, so each has the whole side. See Web pages.

The pictures show JSpark on a Mac. On Windows, the window buttons are at the top right, the menus are in theMenu button at the left end of the tabs, and shortcuts use Ctrl where a Mac uses ⌘. The rest works the same way.

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.