WebStorm 9.0.2 Web Help

Dart Support

WebStorm supports developing, running, and debugging Dart code. WebStorm recognizes *.dart files, and allows you to edit them providing full range of coding assistance. Dart files are marked with the icon_dart.png icon.

Dart is intended for developing both client-side and server-side applications. WebStorm supports both workflows.

  • For running and debugging the server-side code, WebStorm provides a dedicated run/debug configuration of the type Dart Command Line Application.
  • To run and debug the client-side code in a browser, you either need to use the Dartium browser or have the Dart code translated into JavaScript.

    Most browsers that work with JavaScript code do not natively process Dart code. The only exception is Dartium. This dart-oriented version of Chromium contains a built-in Dart VM and therefore can run Dart code directly. For details, see http://www.dartlang.org/tools/dartium/.

    To be executed in any other browser, Dart code has to be translated into JavaScript. This operation is referred to as transpilation and the tools that perform it are called transpilers.

    WebStorm supports integration with the dart2js tool which is a part of the Dart SDK. The dart2js transpiler translates Dart code into JavaScript.

When the Dart development support is enabled, see Preparing for Dart Development, WebStorm provides full coding assistance, which involves:

In this section:

See Also

Language and Framework-Specific Guidelines:

External Links:

Last modified: 11 December 2014
comments powered by Disqus