[![Discord Chat](https://img.shields.io/badge/chat-discord-blue.svg)](https://discord.gg/xSTPEqm)
[![Follow on Twitter](https://img.shields.io/badge/twitter-dartcode-blue.svg)](https://twitter.com/DartCode)
[![Follow on Bluesky](https://img.shields.io/badge/bluesky-dartcode.org-blue.svg)](https://bsky.app/profile/dartcode.org)
[![Contribute to Dart Code](https://img.shields.io/badge/help-contribute-551A8B.svg)](https://github.com/Dart-Code/Dart-Code/blob/master/CONTRIBUTING.md)
[![Coverage](https://codecov.io/github/Dart-Code/Dart-Code/graph/badge.svg?token=EPDiJkMrZM)](https://codecov.io/github/Dart-Code/Dart-Code)

## Introduction

Dart Code extends [VS Code](https://code.visualstudio.com/) with support for the
[Dart](https://dart.dev/) programming language, and provides tools for
effectively editing, refactoring, running, and reloading [Flutter](https://flutter.dev/)
mobile apps.


## Installation

Dart Code can be [installed from the Visual Studio Code Marketplace](https://marketplace.visualstudio.com/items?itemName=Dart-Code.dart-code) or by [searching within VS Code](https://code.visualstudio.com/docs/editor/extension-gallery#_search-for-an-extension).

If you have any issues using Dart Code, please file issues on GitHub at [https://github.com/Dart-Code/Dart-Code/issues/new/choose](https://github.com/Dart-Code/Dart-Code).


## Features

- Edit and Debug Flutter mobile apps (launch using `F5` or the `Debug` menu)
- Edit and Debug Dart command line apps (launch using `F5` or the `Debug` menu)
- [Automatic hot reloads for Flutter](https://dartcode.org/docs/settings/#dartflutterhotreloadonsave)
- [Refactorings and Code fixes (lightbulb)](https://dartcode.org/docs/refactorings-and-code-fixes/)
- [Quickly switch between devices for Flutter](https://dartcode.org/docs/quickly-switching-between-flutter-devices/)
- [Flutter Doctor command](https://dartcode.org/docs/commands/#flutter-run-flutter-doctor)
- [Flutter Get Packages command](https://dartcode.org/docs/commands/#flutter-get-packages)
- [Flutter Upgrade Packages command](https://dartcode.org/docs/commands/#flutter-upgrade-packages)
- [Automatically gets packages when `pubspec.yaml` is saved](https://dartcode.org/docs/settings/#dartrunpubgetonpubspecchanges)
- [Automatically finds SDKs from `PATH`](https://dartcode.org/docs/configuring-path-and-environment-variables/)
- [Notification of new stable Dart SDK releases](https://dartcode.org/docs/settings/#dartcheckforsdkupdates)
- [Sort Members command](https://dartcode.org/docs/commands/#dart-sort-members)
- Support for debugging "just my code" or SDK/libraries too ([`dart.debugSdkLibraries`](https://dartcode.org/docs/settings/#dartdebugsdklibraries) and [`dart.debugExternalPackageLibraries`](https://dartcode.org/docs/settings/#dartdebugexternalpackagelibraries))
- [Prompts to get packages when out of date](https://dartcode.org/docs/settings/#dartprompttogetpackages)
- Syntax highlighting
- Code completion
- [Snippets](https://github.com/Dart-Code/Dart-Code/tree/master/snippets)
- Realtime errors/warnings/TODOs
- Documentation in hovers/tooltips
- Go to Definition
- Find References
- Rename refactoring
- Format document
- Support for format-on-save (`editor.formatOnSave`)
- Support for format-on-type (`editor.formatOnType`)
- Workspace symbol search
- Document symbol search
- [Organize Imports command](https://dartcode.org/docs/commands/#dart-organize-imports)
- [Pub Get Packages command](https://dartcode.org/docs/commands/#pub-get-packages)
- [Pub Upgrade Packages command](https://dartcode.org/docs/commands/#pub-upgrade-packages)
- [Type Hierarchy](https://dartcode.org/docs/commands/#dart-show-type-hierarchy)


## Extension Settings

A full list of settings is [available here](https://dartcode.org/docs/settings/).


## Frequently Asked Questions

A list of frequently asked questions is [available here](https://dartcode.org/faq/).


## Key Bindings

A list of useful key bindings is [available here](https://dartcode.org/docs/key-bindings/).


## Refactorings and Code Fixes

A full list of supported refactors is [available here](https://dartcode.org/docs/refactorings-and-code-fixes/).


## Analytics

This extension reports some analytics such as:

- Extension load and analysis times
- Version numbers for the Dart/Flutter extensions and SDKs
- The values of some settings (such as Flutter UI Guidelines and Format-on-Save)
- Frequency of use of features like Hot Reload and Hot Restart

Reporting can be disabled via VS Code's standard **Telemetry: Telemetry Level** setting.


## Release Notes

For full release notes, see [the changelog](https://dartcode.org/releases/).
