Open files in VS Code and Cursor / 3D and imaging

Open DICOM and NIfTI files in VS Code

Install the free DICOM Viewer and click a .dcm, .nii or .nii.gz file, or a DICOMDIR. For a folder of slices, right-click the folder and pick "Open Folder as DICOM Series". You get window presets for CT, axial, coronal and sagittal views with real slice spacing, the value under the cursor (HU for CT) and a searchable tag table.

Install in VS CodeMarketplace pageOpen VSX (Cursor, Windsurf, VSCodium)

Free, MIT license. Extension ID zovo.dicom-nifti-viewer, version 0.1.4. Needs VS Code 1.90.0 or newer.

DICOM Viewer showing a chest CT phantom in the lung window with the tag table beside it
DICOM Viewer showing a chest CT phantom in the lung window with the tag table beside it.

Steps in VS Code

  1. Install DICOM Viewer from the Marketplace, or press Ctrl+P (Cmd+P on macOS) and run ext install zovo.dicom-nifti-viewer.
  2. Click a .dcm, .dicom, .nii or .nii.gz file, or a DICOMDIR.
  3. Press 1 to 4 for the brain, soft tissue, lung and bone windows, or drag to set window and level.
  4. Press A, C or S for axial, coronal or sagittal. Press T for the tag table.
  5. Export the view as PNG.

Steps in Cursor, Windsurf or VSCodium

  1. Open the Extensions view with Ctrl+Shift+X (Cmd+Shift+X on macOS).
  2. Search for zovo.dicom-nifti-viewer and click Install. Cursor, Windsurf and VSCodium install from Open VSX, where it is published as zovo/dicom-nifti-viewer.
  3. If your editor has no gallery, download the .vsix from the Open VSX page and run "Extensions: Install from VSIX...".
  4. Then use it the same way as in VS Code.

What DICOM Viewer handles

What it does not do

Other options

Install counts and Open VSX status were checked on 8 November 2026. Descriptions in quotes are the extensions' own.

Questions

Can it open compressed DICOM?

RLE Lossless and Deflated files open. JPEG family and JPEG 2000 files show their tags and a message for now.

Does it de-identify files?

No. It warns when common patient fields are present, but it is a check, not a de-identification tool.

Does any data leave my computer?

No. It makes no network calls and has no telemetry.

More about DICOM Viewer

Read the DICOM Viewer page for every feature and setting, or the source code on GitHub.

Support this work

If this extension saves you time, you can support the work on GitHub Sponsors. Monthly tiers start at $5, and one-time tiers start at $15. Sponsorship is optional, and the tool works the same without it.