Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
136 lines (100 sloc) 3.73 KB
title description
IntelliJ & Android Studio
Use Dart with a variety of IDEs and editors from JetBrains.

The Dart plugin adds Dart support to JetBrains IDEs such as IntelliJ IDEA and Android Studio. IntelliJ IDEA is an intelligent Java IDE with support for many other languages and frameworks. Android Studio is an IDE based on IntelliJ IDEA that's used for Android and Flutter development.

Whichever JetBrains IDE you choose for Dart development, this page has resources to help you get started quickly and find more information when you need it.

**Note:** [WebStorm,]( a JetBrains IDE for client-side development, comes with the Dart plugin pre-installed.

Getting started

If you don't already have the IDE and the Dart SDK, get them. Then install the Dart plugin and tell it where to find the Dart SDK.

Downloading the IDE

Install a JetBrains IDE if you don't already have one.

**Note:** The Community Edition of IntelliJ IDEA has limited functionality. For example, it doesn't directly support debugging web apps. It also has very little support for JavaScript, HTML, CSS, and YAML.

Downloading the Dart SDK

If you don't already have the Dart SDK, install it.

Configuring Dart support

Here's one way to configure Dart support:

  1. Start the IDE, and install the Dart plugin. To find the Dart plugin, from the Welcome screen choose Configure > Plugins, then click Install JetBrains plugin, and then search or scroll down until you find Dart. Once you've installed the Dart plugin, restart the IDE.

  2. Create a new Dart project:

    1. From the Welcome screen, click Create New Project.
    2. In the next dialog, click Dart.

  3. If you don't see a value for the Dart SDK path, enter it.

    For example, the SDK path might be <dart installation directory>/dart/dart-sdk.

    Note: The Dart SDK path specifies the directory that contains the SDK's `bin` and `lib` directories; the `bin` directory contains tools such as `dart` and `dartfmt`. The IDE ensures that the path is valid.

An alternative to Step 2 is to open an existing Dart project, and then open its pubspec.yaml file or any of its Dart files.

{% comment %}

NOTE TO EDITORS OF THIS FILE: [PENDING: put instructions here on how to reset to the initial IntelliJ experience. It probably involves deleting the IDE settings by removing a directory.

{% endcomment %}

Reporting issues

{% include tools/jetbrains-reporting-issues.html %}

More information

See the JetBrains website for more information.

You can’t perform that action at this time.