Check

F8 next problem · hover code for docs · . or Ctrl Space completes
    ↑↓ moveEnter open> commandsEsc close

    Settings

    Share

    To get a file for Nucleus, use Save (Ctrl+S).

    What's new

    All changes: workbench · VS Code extension

    Files in this package

    🧪 Help test this beta

    Each item says what to try, how long it takes and what to look for. Tick what you've tried (kept in this browser), and report anything you find. Test on a desktop or laptop: that's what most people write handlers on.

    Your game on this PC

    Only the names and sizes of the files are read, in this browser. Nothing is uploaded.

    Keyboard shortcuts

    The editor uses VS Code's keys. On a Mac, ⌘ instead of Ctrl. Keys with [ ] / \ ; go by position, as in VS Code: on a German, Spanish or Nordic keyboard, press the key where a US keyboard has that one (e.g. Ü for [). ·

    Workbench
    Ctrl Shift P · F1Command palette: every command (format, fix, try it, theme…)
    Ctrl PExamples and Hub handlers (type > for commands, : for a line); Ctrl K too, outside the code
    Ctrl F5Try it (simulate the handler), as VS Code's Run Without Debugging
    Ctrl ; then ATest all combinations, as VS Code's Run All Tests
    Ctrl SSave (the .zip for Nucleus, or the format you picked last)
    Ctrl Shift SSave as: .zip, .js or .nc
    Ctrl Alt SSave into Nucleus Co-op's handlers folder
    Ctrl BShow or hide the Lines list
    Ctrl ,Settings
    ?This list (outside the editor)
    Esc then TabLeave the code editor (Tab alone indents)
    Problems
    F8 / Shift F8Next / previous problem
    Ctrl .Problems and fixes on this line
    Shift Alt FFormat the code (indentation and spacing)
    Find and navigate
    Ctrl F · Ctrl HFind · find and replace (⌘ ⌥ F on a Mac); Enter / Shift Enter or F3 / Shift F3 through the matches; Alt C / W / R match case, whole word, regex; Ctrl Alt Enter replace all
    Ctrl GGo to line (42 or 42:7 for a column)
    F12 · Shift F12Go to definition · select every use
    F2Rename a variable or function everywhere
    Ctrl Shift \Matching bracket
    Ctrl Shift [ / ]Fold / unfold the block; Ctrl K Ctrl 0 / J all
    Editing
    Ctrl SpaceSuggestions (also after typing .)
    Tab · Shift TabIndent (a selection: its lines) · outdent
    Ctrl / · Shift Alt ALine comment · block comment (Ctrl K Ctrl C / U add / remove)
    Alt ↑ / ↓Move the line up / down
    Shift Alt ↑ / ↓Copy the line up / down
    Ctrl Shift KDelete the line
    Ctrl Enter · Ctrl Shift EnterNew line below · above
    Ctrl ] / [Indent / outdent
    Ctrl LSelect the line
    Ctrl D · Ctrl Shift LSelect the next match too · every match (edit several at once)
    Alt click · Ctrl Alt ↑ / ↓Add a cursor; Shift Alt I one at each selected line's end (Esc for one cursor again)
    Ctrl Z · Ctrl YUndo (including applied fixes) · redo
    Debugger (Try it › Step through)
    F9Breakpoint on this line (or click beside the line number); Shift F9 a condition (Advanced mode)
    F5Start, or continue to the next breakpoint (in the code or Try it)
    F10 · F11 · Shift F11Step over · into · out
    Alt F10 · Alt F5Step back · back to the previous breakpoint
    Ctrl Shift F5 · Shift F5Restart · stop

    Tips under the code: ·

    Links like #hub-<id>, #probe-17 or #example-mistakes open that example directly.

    New handler

    Shown in Nucleus. Also used for Game.GUID (letters, digits and spaces only).