VS Code Extension

The Flutter Compile extension for VS Code (v0.3.1) brings SDK management, diagnostics, and engine build controls directly into your editor.

Installation

  1. Open VS Code
  2. Go to Extensions (Ctrl+Shift+X / Cmd+Shift+X)
  3. Search for "Flutter Compile"
  4. Click Install

Requires VS Code 1.85.0 or later and the flutter_compile CLI installed globally.

Features

The extension adds an activity bar icon with three panels:

SDKs Panel

Doctor Panel

Engine Builds Panel

Status Bar

The status bar displays the current global Flutter SDK version. Click it to open a quick-pick switcher for changing SDKs.

File Watcher

The extension watches .flutter-version for external changes (e.g. from the CLI or another tool). When the file changes, the extension automatically:

Terminal Environment

The extension sets FLUTTER_COMPILE_SDK in VS Code terminal sessions with applyAtShellIntegration. This ensures the project-pinned SDK is used in terminal sessions, surviving shell initialization.

Commands

CommandDescription
Flutter Compile: Install SDKInstall a new Flutter SDK version
Flutter Compile: DoctorRun environment diagnostics
Flutter Compile: Remove SDKRemove an installed SDK
Flutter Compile: Set Global SDKSet the global default SDK
Flutter Compile: Pin SDK to ProjectPin a version to the current project
Flutter Compile: Open SDK FolderOpen SDK directory in file manager
Flutter Compile: Refresh AllRefresh all sidebar panels
Flutter Compile: Toggle SDK ManagerSwitch between Native and FVM backends

Settings

SettingDefaultDescription
flutterCompile.sdkManagernativeSDK manager backend: native or fvm
flutterCompile.cliPathflutter_compilePath to the flutter_compile CLI binary

Backend Toggle (Native vs FVM)

The extension supports two SDK management backends:

Toggle between them using the Flutter Compile: Toggle SDK Manager command or the mode button in the sidebar toolbar.

Auto-Migration

On activation, the extension automatically migrates the shell env file to the latest format with the FLUTTER_COMPILE_SDK guard. This is a one-time operation that ensures IDE terminals use the correct SDK.