PyCharm Edu 4.0 Help

Auto Import

File | Settings | Editor | General | Auto Import for Windows and Linux
PyCharm Edu | Preferences | Editor | General | Auto Import for macOS
Ctrl+Alt+S /help/img/idea/2017.2/settings.png


XML

Show import pop-upAutomatically display an import pop-up dialog box when typing the name of an unbound namespace.

TypeScript/JavaScript

Add ES6 imports automatically
  • If this checkbox is selected, PyCharm Edu automatically inserts an import statement in JavaScript code when you complete a symbol exported using ES6 exports in another project file:
  • When the checkbox is cleared, on pressing Alt+Enter PyCharm Edu shows a pop-up that suggests to import the completed symbol:
    ws_es6_autoimport_off.png
  • Completion and autoimport also work for React components, including stateless components. PyCharm Edu properly detects them, provides code completion, and adds import statements automatically:
Add TypeScript imports automatically
  • If this checkbox is selected, PyCharm Edu automatically inserts an import statement in TypeScript code when you complete a symbol exported in another project file.
  • When the checkbox is cleared, on pressing Alt+Enter PyCharm Edu shows a pop-up that suggests to import the completed symbol.

Python

Show import pop-upAutomatically display an import pop-up dialog box when typing the name of a class that lacks an import statement.
Preferred import styleSelect the style of import statement to be generated. The possible options are:
  • from <module> import <name>
  • import <module>.<name>
Last modified: 26 October 2017