PyCharm Edu 2018.3 Help

Excluding Classes from Auto-Import

Configuring imports

To configure classes to be excluded from import

  1. Open the Settings/Preferences dialog (Ctrl+Alt+S), and under the Editor | General node, click Auto-Import.

  2. On the Auto-Import page, click Add new element (Alt+Insert).

  3. In the dialog box that opens, type the name of the class or a whole package to be excluded, and click OK.

    Use Add (Alt+Insert) and Remove (Alt+Delete) to manage the list of classes and packages that PyCharm Edu shouldn't place to the suggestion list.

  4. Apply changes and close Settings/Preferences dialog.

Excluding classes from imports

To exclude classes from imports in the fly

  1. Start typing a name in the editor, and use intention action as described in the section Creating Imports:

    Creating imports

  2. In the Class to Import suggestion list, select the class you want to be ignored, and click the right arrow to reveal the nested list of intention actions. PyCharm Edu suggests you to exclude specific class or the whole containing package:

    import3.png

  3. Click the desired class or package to be excluded.

Last modified: 11 December 2018

See Also