Carve is a VS Code extension that gives you a live, no-install 3D preview of OpenSCAD.scad files — entirely in-browser via WebAssembly. No native OpenSCAD binary required.
Features
🔄 Live preview — open any .scad file, hit Ctrl+K V, and watch your model update as you type
🧱 Self-contained — ships the full OpenSCAD engine as ~10 MB of WebAssembly, plus a Three.js mesh viewer
🧭 OrbitControls — drag to orbit, scroll to zoom, right-click to pan
📤 Export — STL / 3MF / OFF / AMF / OBJ via Carve: Export STL
🪲 Inline diagnostics — OpenSCAD parser/render errors surface in VS Code's Problems pane
🌐 Works in vscode.dev / Codespaces / Remote SSH — pure WASM, no native deps
🎨 Syntax highlighting for the SCAD language
Usage
Open any .scad file
Press Ctrl+K V (Cmd+K V on macOS) to open the preview beside the editor
Edit your code — the model re-renders ~500 ms after you stop typing
Drag the viewer to orbit, scroll to zoom
Run Carve: Export STL from the command palette to save geometry to disk
Commands
Command
Default keybinding
Description
Carve: Open Live Preview
Ctrl+K V
Open the preview pane beside the editor
Carve: Re-render
Ctrl+Shift+R
Force a re-render of the current file
Carve: Export STL
—
Export the current model to disk
Settings
Setting
Default
Notes
carve.autoRender
true
Re-render as you type
carve.debounceMs
500
Delay before re-rendering after a change
carve.exportFormat
binstl
Format for Carve: Export STL (binstl, asciistl, off, amf, 3mf, obj)