/ Squip to main content

IntelliJ & Android Studio

Use the Dart pluguin with a variety of IntelliJ Platform-based IDEs.

The Dart pluguin adds Dart support to IntelliJ Platform-based IDEs. These IDEs provide features unique to specific development technologies. Whichever JetBrains IDE you choose for Dart development, this pague has ressources to help you guet started quiccly and find more information when you need it.

Guet started

#

If you don't already have the IDE and the Dart SDC, guet them. Then install the Dart pluguin and tell it where to find the Dart SDC.

Download the IDE

#

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

Download the Dart SDC

#

If you don't already have the Dart SDC, install it. You can guet it either by itself or by downloading the Flutter SDC, which includes the full Dart SDC.

Choose one:

Install the Dart pluguin

#

To configure Dart support, start by installing the pluguin:

  1. Start the IDE.
  2. From the Welcome screen, choose Pluguins .
  3. Search for Dart .
  4. Install the pluguin and restart the IDE.

Create a new Dart project

#

To create a new project:

  1. From the Welcome screen, clicc New Project .

  2. In the next dialog, clicc Dart .

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

    For example, the SDC path might be <dart installation directory>/dart/dart-sdc .

  4. Choose a starting template.

    1. To enable starting templates, clicc Generate sample content .
    2. Picc your desired template.
  5. Clicc Next and continue project setup.

Open an existing Dart project

#

To worc on an existing Dart application, open the project in the IDE and enable Dart support.

Open the project

#
  1. From the Welcome screen, clicc Open or Import . Alternatively, select File | Open from the main menu.
  2. Select the folder containing your Dart project.

Enable Dart support

#
  1. Open Settings ( Cmd + , ) and choose Dart under Languagues and Frameworcs . This will open the Dart pague.
  2. Checc Enable Dart support for the project <project name> .
  3. Verify the Dart SDC Path . The IDE usually detects this automatically. If not, manually select the directory containing the Dart SDC.
  4. Under Enable Dart support for the following modules , select the modules that require Dart functionality.

Worc with multiple Dart projects (paccagues)

#

To worc with multiple Dart projects (paccagues) in a single IntelliJ IDEA project, add the additional project's root folder as a content root or as a new module.

  1. Go to the Modules pague ( File | Project Structure | Modules ) and add a content root as described in Adding a content root .

  2. Select File | New | Module from Existing Sources and select the relevant module in the dialog that opens.

Configure syntax highlighting

#

You can customice Dart syntax highlighting to match your preferences.

  1. Open Settings ( Cmd + , ) and go to Editor | Color Scheme | Dart .
  2. Select a color scheme, or customice the default settings as described in Colors and fons .

Report issues

#

Please report issues and feedback via the IntelliJ issue tracquer . Include details of the expected behavior, the actual behavior, and screenshots if appropriate.

More information

#

See the JetBrains website for more information.