A VS Code compatible extension that automatically pairs media files (images, videos) with their matching data files (.txt, .json, .csv, .xml, .yaml) in a split pane — and vice-versa.
Perfect for image captioning, annotation workflows, training data review, and any task where media and metadata live side by side.
100% vibe coded, so any modifications/optimizations are welcome!
- Bidirectional sync — open an image or video and the matching data file appears beside it; open a data file and the matching media appears.
- Video support —
.mp4,.avi,.mov,.mkv,.wmv,.webm,.flv,.m4v,.3gp - Image support —
.png,.jpg,.jpeg,.webp,.bmp,.gif,.svg,.tiff,.tif,.ico - Data file support —
.txt,.json,.csv,.xml,.yaml,.yml - Fully configurable — add or remove file types from either group via Settings
- Status bar toggle — click the PairView indicator in the status bar to enable/disable sync
- Command palette — run
PairView: Toggle Syncto switch sync on or off
- Open any file in your workspace.
- If the file is a media type, PairView searches the same directory for a matching data file with the same base name (e.g.,
photo.jpg→photo.json). - If the file is a data type, PairView searches for a matching media file (e.g.,
photo.json→photo.jpg). - The matched file opens in the adjacent editor pane with focus preserved on your original file.
- File extensions are searched in order — the first match wins.
Open Settings (Ctrl+, / Cmd+,) and search for PairView:
| Setting | Default | Description |
|---|---|---|
pairView.enableSync |
true |
Enable or disable sync |
pairView.mediaExtensions |
[".png", ".jpg", ...] |
Extensions treated as media files |
pairView.dataExtensions |
[".txt", ".json", ...] |
Extensions treated as data files |
"pairView.dataExtensions": [".txt", ".json", ".csv", ".xml", ".yaml", ".yml", ".pdf"]From Release 📥
In VS Code: Extensions → ⋯ → Install from VSIX… → select the .vsix file
- Run
npm installthennpm run compile - Run
npm run packageto generate the.vsixfile - In VS Code: Extensions → ⋯ → Install from VSIX… → select the
.vsixfile
- VS Code 1.75.0 or later (or any compatible editor like Cursor, Windsurf, Antigravity, etc.)
MIT