- Edit JSONL Lines: Edit individual JSON lines in JSONL (JSON Lines) files. Open any line as formatted JSON in a new tab, edit it, and save to update the original JSONL file.
- Preview JSONL: Real-time preview of the JSON on the current line. The preview automatically updates as you move your cursor through the JSONL file.
- Quick Actions: Multiple ways to edit and preview JSON lines - Code Lens, Cmd/Ctrl+Click, Quick Fix menu, or from preview panel.
There are multiple ways to edit a JSON line:
Method 1: Cmd/Ctrl+Click (Recommended)
- Open a JSONL file.
- Hold
Cmd(macOS) orCtrl(Windows/Linux) and click on any JSON line. - Edit the JSON in the new tab (formatted for easy editing).
- Save (Ctrl+S / Cmd+S) to update the original JSONL file.
Method 2: Quick Fix Menu
- Place your cursor on any JSON line.
- Click the light bulb icon (💡) or press
Cmd+./Ctrl+.. - Select "Edit JSON line" from the menu.
- Edit and save to update the original file.
Method 3: Command Palette / Context Menu
- Place your cursor on any JSON line.
- Open command palette and select
Edit JSONL lineor right-click and select from context menu. - Edit and save to update the original file.
There are multiple ways to preview JSON lines:
Method 1: Code Lens
- Open a JSONL file.
- Click "Show Preview" link at the top of the file.
- The preview panel will show the formatted JSON of the first line.
- Use navigation buttons or move your cursor to see different lines.
Method 2: Quick Fix Menu
- Place your cursor on any JSON line.
- Click the light bulb icon (💡).
- Select "Preview JSON line" to open preview for that specific line.
Method 3: Command Palette / Context Menu
- Open a JSONL file.
- Open command palette and select
Preview JSONLor right-click and select from context menu. - The preview panel will show the JSON of the current line.
Method 4: From Preview Panel
- Once the preview panel is open, you can click the "Edit" button to directly edit the current line.
- Use "< Prev" and "Next >" buttons to navigate between lines.
- Or enter a specific line number to jump to it.
To develop and test the preview template with live reload:
npm run preview-devThis will:
- Start a development server at http://localhost:3000
- Display the preview template with sample JSON data
- Auto-reload when you modify
src/preview-template.html

