Skip to content
| Marketplace
Sign in
Visual Studio Code>Visualization>Android / CMP XML Resource ViewerNew to Visual Studio Code? Get it now.
Android / CMP XML Resource Viewer

Android / CMP XML Resource Viewer

chethan.n

|
2 installs
| (0) | Free
Preview Android Vector Drawable and Compose Multiplatform XML resources as SVG inside VS Code.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Android / CMP XML Resource Viewer

A VS Code extension that previews Android Vector Drawable and Compose Multiplatform XML resources as SVG directly inside the editor.

Features

  • Live preview for .xml Android Vector Drawables.
  • Custom editor — open any compatible XML resource with the "Android/CMP Resource Preview" editor.
  • Command — run Preview Android/CMP XML Resource from the editor title or Explorer context menu.
  • Real-time updates as you edit the XML.
  • Supports vector, group, path, and clip-path elements with common attributes.

Limitations

  • clip-path elements are converted to SVG <clipPath> definitions, but their document-order application to mixed sibling elements is best-effort because the XML parser groups elements by tag name. Most icons do not use clip-paths.

Supported formats

  • Android Vector Drawable (res/drawable/*.xml)
  • Compose Multiplatform resources (composeResources/drawable/*.xml, composeResources/files/*.xml)

Usage

  1. Open an Android Vector Drawable XML file.
  2. Click the Open Preview icon in the editor title bar, or right-click the file in the Explorer and choose Preview Android/CMP XML Resource.

Extension settings

Setting Default Description
xmlResourceViewer.backgroundColor transparent Background color of the preview panel.
xmlResourceViewer.defaultSize 256 Default preview size in pixels.

Development

npm install
npm run compile

Press F5 to launch a new VS Code window with the extension loaded.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft