PyCharm 2016.3 Help

Specify Code Cleanup Scope Dialog

Code | Code Cleanup


Specify the scope for code cleanup. (Code cleanup means finding potentially problematic code fragments and automatically fixing them right away.)

ItemDescription
Whole projectSelect this option if you want to perform code cleanup for the whole project.
Uncommitted filesThis option is only available for projects under version control.

Select this option if you only want to perform code cleanup for the files that have not yet been committed to a version control system, and choose a changelist from the drop-down list.

File <file path>Select this option to perform code cleanup for the file that is open in the editor or selected in the Project tool window.
Module <module name>Select this option to perform code cleanup for the project that is currently selected in the Project tool window.

This option is only available, when several projects are opened in one PyCharm window .

Directory <directory path>Select this option to perform code cleanup for the directory currently selected in the Project tool window.
Selected filesSelect this option to perform code cleanup for the files selected in the Project tool window.
Custom scopeSelect this option to specify a custom scope. Select one of the predefined scopes from the drop-down list, or click /help/img/idea/browseButton.png and define the scope in the Scopes dialog that opens. For instructions on how to define a scope, refer to Scope Language Syntax Reference.
Inspection profileSelect the inspection profile to be used. Choose a pre-defined profile from the drop-down list, or click /help/img/idea/browseButton.png and configure a profile in the Inspections dialog that opens.

You can open the Inspections dialog to check which fixes will be applied to the selected scope when you run code cleanup.

See Also

Last modified: 23 November 2016