MatterViz in VS Code and Cursor

The MatterViz extension opens structures, trajectories, Fermi surfaces, volumetric data and materials JSON files in an editor tab, with the same viewers and plots as this site.

EditorInstall from
VS CodeVisual Studio Marketplace
Cursor, VSCodiumOpen VSX

Open a file

What it opens

Every format also opens gzipped (.gz). The exact file name patterns are the customEditors selectors in the extension’s package.json.

Remote SSH and large files

Over Remote SSH, MatterViz reads files straight off the remote machine, so cluster outputs open without copying them.

Settings

Search MatterViz in the Settings UI, or set keys in settings.json. Workspace settings (.vscode/settings.json) apply per project.

{
  "matterviz.color_scheme": "Jmol",
  "matterviz.structure.show_image_atoms": true,
  "matterviz.trajectory.fps": 10,
  "matterviz.trajectory.display_mode": "structure+plot",
  "matterviz.trajectory.atom_type_mapping": { "1": "Si", "2": "O" }
}

atom_type_mapping names the integer atom types of LAMMPS dumps, which rarely carry element names. matterviz.trajectory.index_above_bytes (default 25 MB) sets the file size above which trajectories are indexed and decoded per frame instead of loaded up front.

The settings mirror the viewer controls on this site. The extension readme groups them by category.

Report a bug

Run MatterViz: Report Bug from the command palette. It opens a GitHub bug report in your browser, already filled in with your editor, extension and OS versions, remote session, memory use, open files (home folder shown as ~) and recent log lines. Unexpected errors come with a Report Bug button that adds the error, its stack trace and the failing file’s type and size (never the file, though a parse error may quote a line of it). Add what went wrong, check the report, then submit.