Skip to content
| Marketplace
Sign in
Visual Studio Code>Visualization>CadLensNew to Visual Studio Code? Get it now.
CadLens

CadLens

_yb

|
1 install
| (0) | Free
View STEP and STL 3D models directly in VS Code: model tree, section planes, explode, point-to-point ruler and STEP text view with auto-reload on save. Works offline.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

CadLens

View STEP (.step, .stp) and STL (.stl) 3D models directly in VS Code. Everything runs locally and offline: no model data leaves your machine.

Features

  • Opens .step / .stp / .stl in a 3D viewer by default (right-click → Reopen Editor With… switches back to text).
  • Model tree, display modes, standard views, orthographic/perspective, section (clipping) planes, explode, zebra stripes.
  • Ruler: point-to-point measurement with snapping to vertex, circle centre, midpoint, edge and face. Esc cancels a pick; the results panel can be collapsed.
  • STEP text view next to or below the 3D view (cadlens.textViewPosition).
  • Auto-reload: the 3D view refreshes when the file is saved, by you or by any other program, and keeps the camera.
  • STEP is parsed in a background worker with occt-import-js (Open CASCADE).

Commands and settings

Command What it does
CadLens: Open in 3D Viewer Open the current / selected file in the viewer
CadLens: Open STEP Text View Open the text view of the current model
CadLens: Reload 3D View Re-read the file
Setting Default Meaning
cadlens.textViewPosition below below or beside the 3D view
cadlens.autoReloadOnSave true Reload when the file changes
cadlens.stepTessellation normal Mesh quality for STEP: coarse, normal, fine

Install

  • Marketplace: search for "CadLens" in the Extensions view, or code --install-extension yb.cadlens.
  • From a .vsix: code --install-extension cadlens-<version>.vsix.
  • From source: see CONTRIBUTING.md.

Requires VS Code 1.90 or newer. Windows, macOS and Linux.

Known limitations

  • STEP face types are only plane / cylinder / other, edge types only line / circle / other (derived from the mesh).
  • Very large assemblies (e.g. 20 MB, 150 parts) take several seconds to load and open zoomed out; use Fit.
  • Studio (HDR) rendering is disabled because it would download images from the web.
  • The viewer is read-only: CadLens does not edit or save models.
  • Not covered by automated tests: the measure/clip/explode toolbar tools of three-cad-viewer.

Privacy and security

No network access, no telemetry. The viewer runs in a VS Code webview with a strict Content Security Policy (connect-src limited to the extension's own files). unsafe-eval is enabled only because the Open CASCADE WebAssembly loader (Emscripten embind) builds call wrappers with new Function(). See SECURITY.md.

Licence

MIT. Bundled third-party libraries keep their own licences: see LICENSE-NOTICES.md (three-cad-viewer MIT, three.js MIT, n8ao ISC/CC0, postprocessing Zlib, occt-import-js and Open CASCADE LGPL-2.1, shipped as separate replaceable files).

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft