JSONL Fold & Edit Viewer
Marketplace ID: jsonlfoldviewer.jsonl-fold-viewer
Open any .jsonl file and expand or edit exactly the record you want.
打开任意 .jsonl 文件后,将鼠标移到行号旁边即可显示折叠箭头。点击箭头可把该行展开为带语法颜色、可以直接编辑的格式化 JSON,再次点击即可收起。
The viewer keeps VS Code-style JSON colors and line numbers. Fold state, horizontal/vertical scroll positions, and invalid drafts are remembered per file, including after the editor is closed and reopened.
视图保留 VS Code 风格的 JSON 配色和行号,并按文件记住展开状态、横向/纵向滚动位置和未完成的无效草稿;关闭再重新打开文件后也会恢复。
Usage / 使用方法
- Open a file whose name ends in
.jsonl.
- Move the pointer beside a line number to reveal the native-style folding chevron.
- Click the chevron to expand that record, then edit the formatted JSON directly.
- Your edits stay as local drafts. Use Ctrl/Cmd+S to apply all drafts and save them as one physical JSONL line per record.
The extension opens .jsonl files in this viewer by default. Every physical line can be expanded and collapsed, including malformed JSON, missing braces, invalid escapes, and plain text; malformed content is shown exactly as written without validation banners. Typing never changes the underlying VS Code document and cannot trigger Auto Save: both valid and invalid edits remain recoverable local drafts until you explicitly press Ctrl/Cmd+S. The expanded editor supports Ctrl/Cmd+Z, Ctrl+Y, and Ctrl/Cmd+Shift+Z. On save, valid JSON is losslessly compacted and invalid text is flattened to one physical line. The viewer also supports VS Code's Find widget and automatically refreshes when the underlying document changes. To use the regular raw editor, choose Reopen Editor With... → Text Editor from the editor tab context menu.
插件默认使用此视图打开 .jsonl。每个物理行都可以展开和收起,包括非法 JSON、缺少括号、非法转义和普通文本;无效内容会完全按原文显示,不出现校验提示。输入时不会修改底层 VS Code 文档,也不会触发自动保存;有效和无效修改都会作为可恢复的本地草稿保留,只有明确按下 Ctrl/Cmd+S 才会写入并保存。展开编辑器支持 Ctrl/Cmd+Z、Ctrl+Y 和 Ctrl/Cmd+Shift+Z。保存时,有效 JSON 会无损压缩,无效内容则会折叠为一个物理行。如需使用普通原始文本编辑器,请在标签页菜单中选择 Reopen Editor With... → Text Editor。
Privacy
All parsing happens locally inside VS Code. The extension has no network requests, telemetry, accounts, or settings.