Inspect and edit .obuf binary files in Visual Studio Code. Opening any *.obuf file decodes it through the omnibuf CLI and opens an editable, syntax-highlighted JSON view by default. Saving (Cmd+S / Ctrl+S) re-encodes the JSON back to binary .obuf wire bytes via omnibuf encode and updates the Hex pane live.
Requirements
Visual Studio Code 1.85+
omnibuf CLI on your PATH (or configured via omnibuf.cliPath):
brew install omnibuf/tap/omnibuf
Features
Editable JSON by default: Custom editor for *.obuf files decodes payloads with omnibuf decode and renders syntax-highlighted JSON styled to your active VS Code theme. Edit directly in the JSON pane, format with Format, and save (Cmd+S / Ctrl+S) to re-encode back to binary .obuf wire bytes.
Safe write-back: Invalid JSON displays an inline validation badge and aborts encoding on save without modifying the existing .obuf file.
Built-in Split & Hex views: Switch between JSON, Split (JSON + canonical 16-byte hex/ASCII side-by-side), and Hex from the toolbar, or open the file in VS Code's Hex Editor (ms-vscode.hexeditor) / default binary editor via Open Raw.
Live reload & hot exit: Watches .obuf files on disk for external changes, supports native VS Code Undo/Redo, Save As, Revert, and hot-exit backups.
Schema-aware mode: Configure omnibuf.schemaPath (-s) and omnibuf.messageType (-t) to decode and encode with a FileDescriptorSet (.json, .pb, .pb.gz).
Graceful fallback: Missing CLI or invalid wire bytes show a clear diagnostic while keeping the raw Hex view available.
Commands
Command
Action
OmniBuf: Open in OmniBuf Viewer
Open the selected .obuf file in the OmniBuf custom editor
OmniBuf: Open in Hex / Binary Editor
Open the .obuf file in VS Code's Hex Editor (if installed) or default binary editor
OmniBuf: Copy Decoded JSON
Decode the .obuf file via omnibuf CLI and copy the JSON to the clipboard