PyCharm Edu 2019.1 Help

Resolving Problems

Introduction

By default, PyCharm Edu analyses the code in all open files and highlights the detected code issues. You can fix most of the issues immediately by applying quick-fixes.

If you perform code analysis or execute a single inspection in a larger scope of source files, PyCharm Edu displays the detected code issues in the Inspection Results Tool Window. When you select a specific issue in this window, its report is shown in the right part of the window.

If there are available fixes to the issue, PyCharm Edu notifies it in the following ways:

  • The Apply a Quickfix Intention bulb button becomes available on the toolbar of the Inspection Results tool window.

  • The available fixes are shown in the optional Problem resolution field of the report.

  • The available fixes are shown in the context menu of the issue.

If there are no available fixes, the only option is to fix the issue manually.

Note the following:

  • To display the source code of an issue in the editor, when it is selected in the Inspection Results Tool Window, toggle the Autoscroll to Source Autoscroll to Source button.

  • If you find that some of the reported issues are minor or not helpful to you, you can ignore them either by disabling the corresponding inspection or by suppressing it in a specific piece of code.

Fixing problems

To fix a problem reported by code inspection

In the Inspection Results Tool Window, select the code issue you are interested in and do one of the following:

  • If PyCharm Edu suggests any fixes to the issue as described above, you can use one of them to fix the problem immediately.

  • If no resolutions are suggested, use the Jump to source command in the context menu and fix the problem manually.

If you have invoked inspections manually, you can examine the results in the Inspection Results tool window that opens automatically after the analysis is finished. All detected problems are listed in the left part of the tool window. Click a problem to display inspection details on the right.

Last modified: 29 June 2019

See Also