A Visual Studio Code extension for viewing, validating, and editing GDTF (General Device Type Format) fixture description files (.gdtf).

Features
- Browse GDTF Contents: Open any
.gdtffile directly in VS Code to see its contents in a clean, organised table view, with directories listed first - Preview Files: Click any text-based file inside the archive (XML, JSON, SVG, etc.) to open it in a new editor tab with syntax highlighting
- Edit & Save Back: Edit any extracted text file and save it — you'll be prompted to write the changes back into the
.gdtfarchive - Validate Against Schema:
description.xmlis automatically validated against the bundledgdtf.xsdschema viaxmllint; errors and warnings appear in the Problems panel - Hover Documentation: Hover over XML elements in
description.xmlto see attribute descriptions drawn from the GDTF schema - Document Symbols: The Outline view shows the structure of
description.xmlfor quick navigation - File Information: View file paths and sizes for every entry in the archive
Usage
- Open any
.gdtffile in VS Code - The GDTF Editor opens automatically and lists the archive contents
- Click a file name to preview its contents
- Edit the file and press Ctrl+S — when prompted, choose Update GDTF to write the changes back into the archive
- Schema validation results for
description.xmlappear in the Problems panel
Requirements
xmllintmust be available on yourPATHfor GDTF schema validation
Development
npm install
npm run compile # build once
npm run watch # rebuild on change
Press F5 to launch an Extension Development Host and open a .gdtf file to test.
Building a VSIX
npm run package # produces a .vsix file via vsce
Credits
Based on Zip ViewerX — used to open Zip files.
Includes GDTF 1.2 Schema from mvrdevelopment/tools
License
WTFPL