IntelliJ IDEA supports developing, running, and debugging Dart code.
IntelliJ IDEA recognizes
*.dart files, and allows you to edit them
providing full range of coding assistance.
Dart files are marked with the icon.
Dart is intended for developing Web and command-line applications. IntelliJ IDEA supports both workflows.
- For running and debugging Dart command-line applications, IntelliJ IDEA provides a dedicated run/debug configuration of the type Dart Command Line Application.
To run and debug a Dart Web application in a browser, you either need to use the Dartium browser
In IntelliJ IDEA, transpiler configurations are called File Watchers. For each supported transpiler, IntelliJ IDEA provides a predefined File Watcher template. Predefined File Watcher templates are available at the IntelliJ IDEA level. To run a transpiler against your project files, you need to create a project-specific File Watcher based on the relevant template, at least, specify the path to the transpiler to use on your machine.
When the Dart development support is enabled, see Preparing for Dart Development, IntelliJ IDEA provides full coding assistance, which involves:
- Code completion for keywords, labels, variables, parameters and functions.
- Error and syntax highlighting.
- Code formatting and folding.
- Numerous code inspections and quick-fixes.
- Integration with the native Dart static analysis engine: all inconsistencies and potential problems are reported in the dedicated Dart Analysis Tool Window with the possibility to navigate to the fragment of the source code where the problem was detected.
- Common refactoring procedures, such as extract method , inline, rename/move, etc.
- Code generation:
Navigation and search through the source code:
- Navigating with Structure View.
- (Ctrl+Alt+B) from overridden method / subclassed class.
In this section: