-
Download the Dart SDK
.
-
Make sure the Dart plugin is installed and enabled.
The plugin is not bundled with PhpStorm, but it is available from the PhpStorm plugin repository
.
Once enabled, the plugin is available at the IDE level, that is, you can use it in all your PhpStorm projects.
-
To configure the Dart SDK in PhpStorm, click the Dart Settings button
on the toolbar.
The Dart Settings dialog opens.
-
In the Choose Dart SDK Home Path text box, 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, it displays the revision number of the detected SDK.
- To activate the SDK, select the Dart SDK enabled check box.
- If applicable, change the scope of the SDK. Click the Edit usage scope link and update the default settings in the Usage Scope dialog box that opens. By default the SDK is used at the PhpStorm level.
-
In the Choose Dart SDK Home Path text box, specify the location of the downloaded Dart SDK.
Type the path manually or click the Browse button
Coding assistance
With the Dart development support is enabled, PhpStorm 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 or Ctrl+NumPad /Ctrl+Slash or Ctrl+NumPad /Ctrl+Slash or Ctrl+NumPad /Ctrl+Slash or Ctrl+NumPad /Alt+SemicolonCtrl+Slash, Ctrl+NumPad / or Ctrl+ColonCtrl+Slash, Ctrl+NumPad / or Ctrl+Shift+CCtrl+Slash or Ctrl+NumPad /Meta Slash or Meta NumPad /Meta Slash or Meta NumPad /Meta Slash or Meta NumPad //Ctrl+Shift+Slash or Ctrl+Shift+NumPad /Ctrl+Shift+Slash or Ctrl+Shift+NumPad /Ctrl+Shift+Slash or Ctrl+Shift+NumPad /Ctrl+Shift+Slash or Ctrl+Shift+NumPad /Ctrl+Shift+Slash or Ctrl+Shift+NumPad /Ctrl+Shift+Slash, Ctrl+Shift+NumPad / or Ctrl+Shift+ColonCtrl+Shift+Slash or Ctrl+Shift+NumPad /Ctrl+Shift+SlashControl Shift Slash, Control Shift NumPad /, Meta Shift Slash or Meta Shift NumPad /Control Shift Slash, Control Shift NumPad /, Meta Shift Slash or Meta Shift NumPad /Control Shift Slash).
-
Navigation and search through the source code:
- Navigating with Structure View.
- (Ctrl+B, Ctrl+Button1 Click or Button2 ClickCtrl+B, Ctrl+Button1 Click or Button2 ClickCtrl+B, Ctrl+Button1 Click or Button2 ClickCtrl+B, Ctrl+Button1 Click or Button2 ClickCtrl+Alt+G, Escape, Period, Alt+Period or Ctrl+Button1 ClickF12, Shift+F2, Ctrl+B, Ctrl+Button1 Click or Button2 ClickCtrl+B, Ctrl+Button1 Click or Button2 ClickF3 or Ctrl+Button1 ClickMeta B, Meta Button1 Click or Button2 ClickMeta B, Meta Button1 Click or Button2 ClickF3 or Control Button1 Click).
- (Ctrl+Alt+B or Ctrl+Alt+Button1 ClickCtrl+Alt+B or Ctrl+Alt+Button1 ClickCtrl+Alt+B or Ctrl+Alt+Button1 ClickCtrl+Alt+B or Ctrl+Alt+Button1 ClickCtrl+Alt+B or Ctrl+Alt+Button1 ClickCtrl+Alt+B or Ctrl+Alt+Button1 ClickCtrl+Alt+B or Ctrl+Alt+Button1 ClickCtrl+T or Ctrl+Alt+BMeta Alt B or Meta Alt Button1 ClickMeta Alt B or Meta Alt Button1 ClickMeta Alt B or Meta Alt Button1 Click) from overridden method / subclassed class.
