DWG Viewer
A VS Code extension for opening 2D CAD drawings directly inside the editor.
You can also open interactive examples in the browser: cad.thingraph.site/dwg-viewer.
Features
- Open DWG and DXF files in a custom read-only editor.
- Render drawings inside a VS Code webview with pan, zoom, layer management, layout switching, screenshot, and viewer tools.
- Background follows the editor theme for a consistent look in VS Code and Cursor.
Examples
2D Drawing And Layers


3D formats (glTF, GLB, OBJ, FBX, STL, IFC, STP, STEP, IGS, IGES) are not supported by this extension. Use instead.
Usage
- Open a supported DWG or DXF file in VS Code.
- The extension opens the file with the DWG Viewer custom editor.
- Use the viewer controls to inspect the drawing.
Notes
- The editor is read-only.
- Large drawings may take longer to load depending on file size and machine performance.
Support
Release Notes
See CHANGELOG.md.
Publishing
Marketplace packaging and publishing steps are documented in PUBLISH.md.
License
Proprietary, see LICENSE.
| |