# Specify Code Cleanup Scope dialog

> **TL;DR**
> `Code | Code Cleanup`

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

| Item | Description |
| --- | --- |
| Whole project | Select this option if you want to perform code cleanup for the whole project. |
| Uncommitted files |    This option is only available for projects under version control.      Clean up the code in the files that have not yet been committed to a version control system. You can select a changelist of fix problems in all uncommitted files.    |
| 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. |
| Directory <directory path> | Clean up the code in the directory that is currently selected in the Project tool window. |
| Custom scope | Select a scope custom scope. You can select one of the predefined scopes from the list, or click ![the Browse button](https://resources.jetbrains.com/help/img/idea/2026.2/app.general.ellipsis.svg) and define a new scope in the [Scopes](settings-scopes.html) dialog that opens. For more information about defining a scope, refer to [Scope language syntax reference](scope-language-syntax-reference.html) .   |
| Inspection profile |    Select an inspection profile. You can use a pre-defined profile from the list, or click Configure… and create a new profile in the [Other Languages](inspections-settings.html) dialog that opens.      You can open the  [Inspections](inspections-settings.html) dialog to check which fixes will be applied to the selected scope when you run code cleanup.     |

## See also

### Procedures

[Static code analysis](code-inspection.html)

### Reference

[Scopes](settings-scopes.html) [Inspections](inspections-settings.html) [Scope language syntax reference](scope-language-syntax-reference.html)

