Quickstart
Get ParrotJS running in VS Code in under two minutes.
This guide walks you through installing ParrotJS and seeing your first inline values. For more detail, see the full Installation guide.
Prerequisites
- VS Code 1.75 or later
- Node.js 18 or later
- A JavaScript or TypeScript project
Installation
Install from the VS Code Marketplace:
- Go to ParrotJS on the Marketplace
- Click Install β or open VS Code and press
Cmd+Shift+X/Ctrl+Shift+X, then search for ParrotJS - Reload VS Code if prompted
Or via command line:
code --install-extension parrotdev.parrotjs
Your First Session
Open any .js, .ts, .jsx, or .tsx file. ParrotJS auto-starts and begins showing results inline.
// example.js β just open this file and ParrotJS does the rest
const add = (a, b) => a + b;
const result = add(3, 7); // ? result β 10
Live Comments (Free)
Drop // ? after any expression to see its value β this works on the free tier:
const items = [1, 2, 3].map(x => x * 2); // ? items β [2, 4, 6]
for (const item of items) {
item; // ? item β 2, 4, 6 (one per iteration)
}
The // ? items live comment shows [2, 4, 6] at the end of the same line. On PRO, the variableβs own inline decoration also shows the input array, rendered like 1, 2, 3, [2, 4, 6].
Inline Console Output (Free)
console.log output appears right at the call site, plus in the ParrotJS output panel:
const sum = add(5, 7);
console.log('sum is', sum); // β ['sum is', 12] (inline, no terminal switching)
Inline Assertions (Free)
Write assertions anywhere in your code:
const sum = add(5, 7);
expect(sum).toBe(12); // β pass
expect(sum).toBe(13); // β expected 12 to be 13
Full Inline Values (PRO)
The full inline runtime values β every variable, function return, and loop iteration β are a PRO feature. On the free tier youβll see live comments, console output, and assertions. Upgrade for the complete picture:
const user = { name: 'Ada', age: 36 };
// PRO shows: β {name: 'Ada', age: 36} inline as you type
Time Travel (PRO)
Time Travel recording and playback is a PRO feature:
- Open the Command Palette (
Cmd+Shift+P) - Run ParrotJS: Toggle Time Travel (or press
Shift+F5) - Let your code execute β each step is recorded
- Use the timeline panel to scrub through execution
- Use keybindings:
F10step over,F11step into,Alt+βstep back,Alt+βstep forward
See the Time Travel guide for the full walkthrough.
Run Modes
ParrotJS offers three run modes, toggled from the status bar or command palette:
| Mode | Behavior |
|---|---|
| Auto | Executes automatically as you type (debounced) |
| On Save | Executes only when you save (Cmd+S) |
| On Demand | Executes only when you run ParrotJS: Re-execute |
Whatβs Next?
- Installation β requirements, VSIX installs, profiles.
- Feature guides β learn what ParrotJS can do.
- Configuration β set up profiles, keybindings, and run preferences.
- Keyboard Shortcuts β the full keybinding reference.