IntelliJ & Android Studio
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.
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. Choose one:
- IntelliJ IDEA
- IntelliJ IDEA EAP (for early access to the latest Dart language features and IntelliJ functionality)
- Another JetBrains product
Downloading the Dart SDK
If you don’t already have the Dart SDK, install it. You can get it either by itself or by downloading the Flutter SDK, which (as of Flutter 1.21) includes the full Dart SDK.
Configuring Dart support
Here’s one way to configure Dart support:
Start the IDE, and install the Dart plugin.
- From the Welcome screen, choose Plugins.
- Search for Dart.
- Once you've installed the Dart plugin, restart the IDE.
Create a new Dart project:
- From the Welcome screen, click New Project.
- In the next dialog, click Dart.
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.
Choose a starting template.
- To enable starting templates, click Generate sample content.
- Pick your desired template.
Click Next and continue project setup.
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.
Please report issues and feedback via the official JetBrains issue tracker for Dart.
Include details of the expected behavior, the actual behavior, and screenshots if appropriate.
See the JetBrains website for more information.