Skip to content
Dart-CodePublic

About

Flutter support for VS Code

Resources

Stars

356 stars

Watchers

15 watching

Forks

Repository files navigation

Flutter for Visual Studio Code

Discord Chat Follow on Twitter Follow on Bluesky Contribute to Dart Code

Adds support for Flutter development (mobile, web, and desktop) to Visual Studio Code, including hot reload, device management, widget editing, debugging, testing, and DevTools integration.

This extension depends on and automatically installs the Dart extension for Dart language support.

Features

  • Hot Reload & Debugging — Run, debug, and attach to Flutter apps (mobile, web, and desktop) with breakpoints, expression evaluation, hot reload and hot restart (including hot reload on save), and configurable "Just My Code" debugging.
  • Devices & Emulators — Quickly switch target devices from the status bar, launch Android emulators and iOS simulators, and run flutter doctor directly from VS Code.
  • Widget Editing & Refactoring — Code completion, real-time diagnostics, widget-aware refactorings (wrap/remove/extract widget), closing labels, Flutter UI guides, and automatic formatting via dart format.
  • Flutter Sidebar, Property Editor & Widget Preview — Dedicated VS Code views for managing your running app, editing widget properties, and previewing widgets alongside your code.
  • Testing & Packages — Integrated with VS Code's Test Explorer to discover, run, debug, and view coverage for Flutter tests, plus Pub package commands, automatic pub get on pubspec.yaml changes, and a Dependencies view in the Explorer.
  • DevTools & AI Tooling — Built-in Flutter DevTools integration (Widget Inspector, performance, CPU profiler, memory, network, and logging) and AI agent support via the Dart SDK MCP server and VS Code language model tools.

Getting Started

  1. Install this extension from the Visual Studio Code Marketplace, Open VSX, or by searching for Flutter in the VS Code Extensions view. The Dart extension is installed automatically.
  2. Open a folder containing a Flutter project (or run Flutter: Create New Project from the Command Palette). If the Flutter SDK is not already installed on your PATH, the extension can download it for you.
  3. Press F5 (or use the Run and Debug view) to run and debug your app.

Note: Run projects using F5 or the Run and Debug menu for full debugging, hot reload, and DevTools functionality. Running flutter run directly in the built-in terminal will not provide all features.

Documentation

Feedback & Contributing

  • Issues & Feature Requests: Report bugs or request features for both the Dart and Flutter extensions on GitHub Issues. When reporting a bug, attaching a log file (instructions) is often very helpful.
  • Community: Ask questions or chat in the Dart-Code Discord.
  • Contributing: See CONTRIBUTING.md for instructions on building, running, and testing the extensions locally.

Telemetry

The companion Dart extension collects basic anonymous usage analytics — such as extension, editor, and SDK versions, platform, certain commands and debug session types, and a few feature settings — to help guide development.

A complete list of collected events and properties is available in the analytics documentation and telemetry.json. Reporting can be disabled via VS Code's Telemetry: Telemetry Level setting (and also respects DO_NOT_TRACK=1 and Dart/Flutter tooling telemetry opt-out).

About

Flutter support for VS Code

Resources

Stars

356 stars

Watchers

15 watching

Forks

Releases

Packages

Used by

Contributors

Languages