AutoCAD DWG & DXF Previewer for VS CodeOpen any Someone sends you a DWG file. You don't have AutoCAD — or you do, but launching it just to glance at a floor plan is absurd. Install this extension, double-click the file, and the drawing opens in your editor: pan it, zoom it, turn layers on and off, flip between sheets, export it as an image. Works fully offline on Windows, macOS and Linux. Your drawings never leave your machine. Why people install itYou received a DWG or DXF and can't open it. No AutoCAD license, no trial signup, no sketchy "free online DWG viewer" that wants you to upload a client's floor plan to a random server. Your repository contains CAD files. Site plans, panel layouts, machine drawings — review them during a pull request without leaving the editor or asking someone to export a PDF. You just need to check one thing. A dimension, a room label, which layer something sits on. Ten seconds instead of a five-minute application launch. You're a developer working with CAD data. Inspect the drawings your code parses, right next to the code that parses them. What you get
Quick start
Nothing to configure. No converter to install. No account. FAQDo I need AutoCAD installed? No. The DWG reader is built into the extension. Which AutoCAD versions are supported? R14 through 2020 and later (AC1014 – AC1032). Can I edit drawings? No — this is a viewer. Your files are opened read-only and are never modified. Are my files uploaded anywhere? Never. Everything runs locally inside VS Code, and it works with no internet connection. Does it work with DXF files?
Yes. What if a file has the wrong extension?
The format is detected from the file's own header, not its name, so a DWG saved as Is 3D supported? This is a 2D viewer. 3D drawings open, but solids are not rendered; 3DFACE geometry appears as wireframe. A drawing looks incomplete — why? The toolbar shows a banner naming any entity type it couldn't draw, so you always know when something is missing rather than quietly getting a partial picture. Please report those files — that banner is exactly the list of what to add next. What it can draw
Layers keep their colors, linetypes and line weights from the original drawing. SettingsNone required. One optional setting, Found a problem?Open View → Output and select DWG Previewer to see exactly what happened during conversion, then open an issue on the repository with that log and, if you can share it, the drawing. Not affiliated with, endorsed by, or sponsored by Autodesk. AutoCAD, DWG and DXF are trademarks of Autodesk, Inc., used here only to describe the file formats this extension reads. |