Skip to content
| Marketplace
Sign in
Visual Studio Code>Visualization>3MF G-code PreviewNew to Visual Studio Code? Get it now.
3MF G-code Preview

3MF G-code Preview

mm-lab

|
158 installs
| (0) | Free
Read-only 3MF and G-code viewer with interactive 3D layer and toolpath review.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

3MF G-code Preview

Preview 3MF models and sliced G-code in VS Code. Explore the full toolpath, inspect individual layers, and follow the print sequence. The viewer is read-only and never changes the original file.

A 20 mm cup shown as a colored 3D toolpath, with layer controls and print times beside it

A sliced 20 mm cup with 200 layers. The preview shows the complete print, path types, layer range, and slicer time estimates in one view.

Explore a print

Focus on the layers you need

Drag the two handles or enter layer numbers to show a range. Switch to Single layer when you want to inspect one slice, and use Top view to see its path layout.

The first 55 layers of the cup shown from above, with the upper layer set to 55

See individual paths

Switch between filament-style paths and center lines. Color paths by type, speed, or tool; use the legend to hide categories and show travel moves separately. Only path types, speed bands, and action markers present in the selected plate appear in their lists. The path-order slider and play button reveal how the selected layers are printed.

Display choices are shared across files and restored when you reopen the preview. Layer selection and playback position stay with the current preview. The 3D grid uses 10 mm squares.

Layer 55 shown as center lines colored by speed

Another model shows how the two path displays handle a dense, detailed region:

Close-up of colored filament-style paths around a circular feature

Filament view shows the approximate width of each deposited path.

The same close-up displayed as colored center lines

The same area in Line view reveals the individual path routes.

Check what is in the file

For 3MF files, open Structure to browse the project, plates, objects, and parts. Select an item to view its available settings, and use the search field to find a parameter or value. The information shown depends on what the file contains.

The viewer also shows available print-time estimates and optional action markers. Click the marker or toolpath heading to expand or collapse its list.

Project tree and project-level settings from the sliced cup 3MF A part's parameter table filtered by keyword

Install and open

In VS Code, open the Extensions view, search for 3MF G-code Preview, and install it from the Marketplace. Then open a .gcode, .gcode.3mf or .3mf file. If another editor opens it, choose Reopen Editor With… and select 3MF G-code Preview.

You can also run 3MF G-code Preview: Open 3MF or G-code from the Command Palette.

For a toolpath preview, the 3MF must contain sliced G-code. In Bambu Studio, Export plate sliced file creates this kind of file. A 3MF project without G-code can show its model geometry, but this extension cannot slice it.

You can also open text .gcode files exported by OrcaSlicer, PrusaSlicer, and UltiMaker Cura. Available path types depend on the slicer; unrecognized types appear as Other. Tool colors distinguish tools and do not reproduce the actual filament colors. Binary .bgcode and UltiMaker .ufp packages are not supported.

The interface follows the VS Code display language: Japanese for Japanese locales and English otherwise. Names stored in the 3MF stay as written in the file.

What to expect

The viewer draws a preview from the file's model and G-code. Filament-style paths approximate deposited material; they are not a measurement of the finished print. Print times come from the slicer's estimates. Action markers are derived from G-code and may differ from printer behavior. The viewer does not determine seam positions or simulate firmware-specific commands.

Large or unsupported files may show an error. The extension does not send a job to a printer or start a print.

Support

Report bugs or request features through the GitHub issue tracker. See Support for what to include in a report.

This is an unofficial project and is not affiliated with or endorsed by Bambu Lab. Licensed under the MIT License.

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