PyCharm integrates with the pub tool and provides a Pub actions pane for running its actions such as installing dependencies or building the project from the editor.
PyCharm logs execution of pub commands in the Messages Tool Window where you can also re-run the last executed command by clicking on the toolbar.
Managing Dart dependencies
As soon as you open a pubspec.yaml file in the editor, PyCharm displays a Pub actions pane at the top of the
pubspec.yaml editor tab. Use the links on this pane to invoke pub get, pub upgrade, and pub cache repair actions.
Building a Dart application
You can also run the pub build action from the Pub actions pane in the editor.
- Open the
pubspec.yamlfile in the editor or switch to the tab where it is opened.
- On the Pub actions pane at the top of the tab, click Build.
- In the dialog box that opens, choose the build mode which determines the behaviour of the compiler:
.dartfiles are not included in the build output. This mode is applicable when you are going to publish your application.
- Other: choose this option if you want to use a custom build mode.