-
Download the Dart SDK
.
-
Make sure the Dart plugin is installed and enabled.
The plugin is not bundled with IntelliJ IDEA, but it is available from the JetBrains plugin repository
.
Once enabled, the plugin is available at the IDE level, that is, you can use it in all your IntelliJ IDEA projects.
- Configure the Dart SDK in IntelliJ IDEA.
Coding assistance
With the Dart development support is enabled, 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.
-
Refactoring:
- Common refactoring procedures, such as extract method , inline, rename/move, etc.
- Dart-specific refactoring procedures, such as change signature, extract parameter, extract variable. These types of refactoring are identical with JavaScript, for more details, see the section JavaScript-Specific Refactorings
-
Code generation:
- Generating code stubs based on file templates during file creation.
- Ability to create line and block comments (Ctrl+Slash; Ctrl+Divide/Ctrl+Shift+Slash; Ctrl+Shift+Divide).
-
Navigation and search through the source code:
- Navigating with Structure View.
- (Ctrl+B).
- (Ctrl+Alt+B) from overridden method / subclassed class.