jsonantt VS Code Extension
Live-preview jsonantt Gantt charts, task
tables, and burn charts directly inside VS Code — no terminal required.
Features
- Live preview pane — opens beside the active JSON editor.
- Multiple chart types — Gantt chart, task table, burn chart, burn table.
- Toolbar controls — render depth, burn field/period/group, date line,
compare mode, milestone filters.
- Auto-preview modes — re-render on every keystroke (debounced), on save,
or manually via the Refresh button.
- Export — save the rendered SVG to disk from inside VS Code.
Requirements
jsonantt must be installed in the Python environment available to VS Code:
pip install jsonantt
The extension looks for jsonantt on PATH, then tries
python3 -m jsonantt and python -m jsonantt.
Use the jsonantt.pythonPath setting to point at a specific Python executable.
Getting Started
- Open a
.json file that describes a jsonantt chart (see the
examples).
- Click the graph icon (⊞) in the editor title bar, or open the Command
Palette (
Ctrl+Shift+P / Cmd+Shift+P) and run
jsonantt: Open jsonantt Preview.
- The preview pane opens beside your editor. Edit the JSON and the chart
updates automatically (based on the
jsonantt.autoPreview setting).
Extension Settings
| Setting |
Type |
Default |
Description |
jsonantt.pythonPath |
string |
"" |
Path to the Python executable with jsonantt installed. |
jsonantt.autoPreview |
"onType" | "onSave" | "manual" |
"onSave" |
When to re-render. |
jsonantt.defaultChartType |
"chart" | "table" | "burn" | "burn-table" |
"chart" |
Chart type shown when the preview opens. |
jsonantt.defaultDpi |
number |
150 |
Image DPI for raster output. |
Development
cd vscode-extension
npm install
npm run compile
To launch a development host with the extension loaded, open the
vscode-extension/ folder in VS Code and press F5.
To package the extension as a .vsix file:
npm run package
Repository Layout
vscode-extension/
package.json Extension manifest
tsconfig.json
src/
extension.ts Activation, command registration, document listeners
previewPanel.ts WebviewPanel lifecycle and postMessage bridge
renderer.ts Spawns the jsonantt CLI, returns SVG data
webview/
panel.css Webview styles (VS Code CSS variables)
panel.js Webview-side JS (toolbar, postMessage)