Skip to content

SVG Preview

SVG files render in a live preview pane that shows the image exactly as a browser would, while you edit the markup alongside it.

An SVG rendered in the live preview next to its source

The SVG preview defaults to an editor-and-preview split view. Change the layout used when you first open an SVG file with the svgPreview.defaultMode setting, which supports Side by Side, Hidden, and Fullscreen modes.

You can also toggle whether the preview updates as you type with svgPreview.livePreview .

Right-click the rendered image in the preview to export it:

The SVG preview context menu showing Download as PNG and Download as SVG
  • Download as PNG — saves a raster image rendered from the SVG.
  • Download as SVG — saves the vector markup as an .svg file.

SVG markup can be formatted with Prettier alongside the other supported languages. See Code Formatting for details.