Skip to content
| Marketplace
Sign in
Visual Studio Code>Visualization>Compose PreviewNew to Visual Studio Code? Get it now.
Compose Preview

Compose Preview

YuriSchimke

| (0) | Free
Live preview rendering for Jetpack Compose and Compose Multiplatform @Preview functions
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Compose Preview

Live preview rendering for Jetpack Compose and Compose Multiplatform @Preview functions — directly in VS Code, without Android Studio.

Compose Preview panel in VS Code

How it works

The extension drives the ee.schimke.composeai.preview Gradle plugin through the Tooling API. The plugin scans compiled classes for @Preview annotations (including transitive multi-preview meta-annotations), renders them to PNG, and the extension loads those PNGs into a webview.

  • Android projects render inside a Robolectric sandbox with native graphics.
  • Compose Multiplatform Desktop projects render with ImageComposeScene and Skia.

Prerequisites

  • The ee.schimke.composeai.preview Gradle plugin applied in your module. See the project README for apply instructions.
  • Java 21 on PATH or JAVA_HOME.
  • Gradle 9.4.1+ (the bundled wrapper in your project is fine).
  • The Gradle for Java extension (installed automatically as a dependency).
  • CMP Desktop projects additionally need implementation(compose.components.uiToolingPreview) — the bundled @Preview annotation has SOURCE retention and is otherwise invisible to the discovery step.

Usage

  1. Open a Kotlin project that applies the Compose Preview Gradle plugin.
  2. Click the Compose Preview icon in the activity bar.
  3. Use the Previews panel to browse discovered @Preview functions and their rendered images.

Commands

Command Description
Compose Preview: Refresh Previews Re-read previews.json and rendered PNGs from build/compose-previews/.
Compose Preview: Render All Previews Run the renderAllPreviews Gradle task to discover and render everything.

Settings

Setting Default Description
composePreview.variant debug Build variant to use for preview rendering (Android).

Links

  • Source & documentation
  • Issue tracker
  • Changelog

License

Apache-2.0

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