OpenSCAD Viewer & 3D Preview
See your OpenSCAD model in 3D beside the code in VS Code, rendered again every time you save. Made by Zovo.

Free, with no account and no network calls:
- A 3D preview beside your .scad file: orbit, pan and zoom, a grid, axes, a print bed outline and a wireframe toggle. It renders again when you save the file or a file it includes or uses.
- 2D designs (square, circle, polygon, text) show flat, as an outline.
- Echo output, warnings and errors appear in a console at the bottom of the preview. Click a line number to jump to that line. Warnings and errors with a line also go to the Problems list.
- Uses the OpenSCAD program already installed on your computer. It is found on the PATH and in the usual install folders, or set its path in
openscadViewer.openscadPath.
- Syntax colors and an outline of modules, functions and variables in the editor, also without OpenSCAD installed.
color() shows in the preview when your OpenSCAD has the Manifold engine (recent builds).
Zovo Pro: USD 19 once, for the Pro tools in every Zovo extension. Each Pro tool has 1 free try on your computer first:
- Customizer: sliders, drop-downs, checkboxes and text boxes for the top-level parameters (the same customizer comments OpenSCAD reads), saved parameter sets, and a live render as you change a value.
- Batch export: STL, 3MF, OFF, AMF, SVG and DXF for the current file or for every saved parameter set at once, with the set name in each file name.
- Measure: bounding box, volume and surface area, the distance between two points you click, and a check against your printer bed size.
How to use it
- Open a .scad file and click the preview button in the editor title (Open 3D Preview to the Side). The Explorer right-click menu has it too.
- In the preview: drag to orbit, right-drag or Shift-drag to pan, scroll to zoom. Keys:
F fit, G grid, A axes, B bed outline, W wireframe. The View list turns the camera to the top, front or right.
- Render in the preview toolbar renders the saved file again. The preview always renders the file as saved on disk.
- Try it with OpenSCAD Viewer: Open the Sample Model in the Command Palette.
- The Pro tools are in the preview toolbar, in the editor title menu, in the Explorer right-click menu for .scad files and in the Command Palette (OpenSCAD Viewer: ... (Pro)). A small row under the preview toolbar shows the free tries left. It closes with its x for the rest of the session, and the setting
openscadViewer.showProTools hides the Pro tools for good.
Security and Workspace Trust
The preview and Batch export run the OpenSCAD program on your computer, and the extension runs it only in a trusted workspace (VS Code Workspace Trust). In a workspace you have not trusted it never starts the program: the preview says why, and syntax colors and the outline keep working. A workspace cannot set the program path for you (openscadViewer.openscadPath is a machine setting).
The program gets the file name and its options as separate arguments, with no shell in between, and is stopped after openscadViewer.renderTimeoutSeconds (120 seconds by default). The preview mesh goes to a new folder in your system's temp folder, which is deleted after each render.
If OpenSCAD is not installed, the preview shows a plain note with the download page (openscad.org/downloads.html) as text. Nothing pops up and nothing opens.
Customizer and parameter sets
The Customizer reads parameters the way OpenSCAD does: top-level variables with a plain value (a number, a string, true or false, or a list of numbers) before the first module or function. A comment after the value sets the control:
/* [Box] */
// Inside width in mm
width = 60; // [20:5:160] slider from 20 to 160 in steps of 5
corners = "round"; // [round:Rounded, square:Square] drop-down
show_lid = true; // checkbox
label = "PARTS"; // 12 text box, at most 12 characters
/* [Hidden] */
radius = 4; // not shown
Saved sets go to the JSON file next to your model with the same name (box.scad keeps its sets in box.json), in the same format OpenSCAD's own Customizer uses. Batch export can write every set, named box-<set name>.stl and so on. Files with the same name in the export folder are replaced.
Settings
openscadViewer.openscadPath: the OpenSCAD program (on macOS the OpenSCAD.app folder works too). Empty: found automatically.
openscadViewer.renderTimeoutSeconds: stop a render or export after this long.
openscadViewer.renderBackend: auto (Manifold when your OpenSCAD has it), manifold, cgal or default.
openscadViewer.bedSize (for example 220x220x250) and openscadViewer.bedOrigin (center or corner): the bed outline and the Measure bed check.
openscadViewer.openPreviewAutomatically: open the preview as soon as a .scad file opens (off by default).
openscadViewer.showConsole, openscadViewer.showProTools, openscadViewer.askForRating, openscadViewer.showSupportLinks.
Privacy
Nothing leaves your computer. The preview has no network access (its content security policy blocks every remote load), and there is no telemetry.
Made by Zovo
OpenSCAD Viewer & 3D Preview is made by Zovo. It is not made by the OpenSCAD project; OpenSCAD is a separate free program that you install yourself. The 3D view uses three.js (MIT); see THIRD-PARTY-NOTICES.md.