PhpStorm 2021.2 Help

Dart settings

Item

Description

Enable Dart support in project <project name>

  • When this checkbox is selected, PhpStorm provides assistance in coding, testing, running, and debugging Dart applications and enables you to configure the Dart SDK.

  • When the checkbox is cleared, no assistance in developing Dart applications is provided and all the controls on the page are disabled.

Dart SDK path

In this field, specify the location of the downloaded Dart SDK. Type the path manually or click the Browse button and choose the path in the dialog box that opens. If PhpStorm recognizes the Dart SDK correctly, its revision number is displayed in the Version read-only field.

Version

In this read-only field, PhpStorm shows the revision number of the detected Dart SDK, provided that the SDK is recognized correctly.

Check SDK update

When this checkbox is selected, PhpStorm checks whether the specified above version of SDK is the latest one. If a newer version of SDK is available, PhpStorm displays a pane at the top of the active editor informing you that a newer SDK version has been released. Do one of the following:

  • Click the Download SDK link and download it from the site.

  • If you have already downloaded the latest SDK version, click the Dart Settings link to switch to the Dart page of the Settings dialog and specify the new SDK location.

From the list, choose the release types of SDK to look in, the available options are:

  • Stable channel

  • Stable and Dev channels

Webdev server port

In this field, specify the port on which the webdev server will start the Dart web app , see Running and debugging Dart web applications.

If you are debugging your Dart web application with Dart webdev daemon, configure the port in the Dart Web run/debug configuration, see Running and debugging Dart web applications.

The default webdev server port is 53322. If this port is already busy, PhpStorm uses the closest free one.

Last modified: 31 August 2021