# Commit

> **TL;DR**
> `File | Settings | Version Control | Commit` for Windows and Linux
>
>
>
> `IntelliJ IDEA | Settings | Version Control | Commit` for macOS
>
>
>
> `Ctrl+Alt+S` (Windows), `⌘ Comma` (macOS), `⌘ Comma` (IntelliJ IDEA Classic (macOS)), `⌘ Comma` (macOS System Shortcuts), `Ctrl+Alt+S` (XWin), `Ctrl+Alt+S` (GNOME), `Ctrl+Alt+S` (KDE), `Ctrl+Alt+S` (Emacs), `Ctrl+Alt+S` (Sublime Text), `⌘ Comma` (Sublime Text (macOS)), `Ctrl+Alt+S` (NetBeans), `Ctrl+Alt+S` (Visual Studio), `⌘ Comma` (Visual Studio (macOS)), `Ctrl+Alt+S` (Eclipse), `⌘ Comma` (Eclipse (macOS)) ![the Settings icon](https://resources.jetbrains.com.cn/help/img/idea/2026.2/app.expui.general.settings.svg)

Use this settings page to configure the commit options.

| Item | Description |
| --- | --- |
|  Clear initial commit message  |  Select this option if you do not want to automatically fill the commit message fields with the previous commit message.  |
|  Commit message inspections  |  Select the inspections that you want to be applied to the commit message.  |

## Commit checks

| Item | Description |
| --- | --- |
|  Reformat code  |  Perform code formatting according to the [Project Code Style settings](settings-code-style.html) .  |
|  Rearrange code  |  Rearrange your code according to the [arrangement rules preferences](reformat-and-rearrange-code.html) .  |
|  Optimize imports  |  Remove redundant import statements.  |
|  Cleanup  |  Automatically apply the current inspection profile to  the files you are going to commit/shelve.  |
|  Update copyright  |  [Add or update a copyright notice](null) according to the selected copyright profile - scope combination.  |
|  Check malicious dependencies  |  Search for [malicious NPM and PyPI dependencies](package-analysis.html#malicious-dependencies) that might be declared in your project.  |

## Advanced commit checks

Use the controls in this area to define which additional actions you want IntelliJ IDEA to perform after committing the selected files.

| Item | Description |
| --- | --- |
|  Analyze code  |  Analyze modified files while committing them. Click Configure to select an [inspection profile](customizing-profiles.html) from which the IDE will run inspections.  |
|  Check TODO (<filter name>)  |  Review the [TODO items](using-todo.html) matching the specified filter. Click Configure to choose an [existing TODO filter](using-todo.html) or open the [TODO settings page](settings-todo.html) and define a new filter to be applied.  |
|  Run tool  |  From this list, select the [external tool](configuring-third-party-tools.html) that you want IntelliJ IDEA to launch after the selected changes have been committed. You can select a tool from the list, or click the Browse button ![the Browse button](https://resources.jetbrains.com.cn/help/img/idea/2026.2/app.general.ellipsis.svg) and configure an external tool in the [External Tools](settings-tools-external-tools.html) dialog that opens.  |
|  Run advanced checks after a commit is done  |  Enable advanced checks to run after you commit your changes. Even if some checks fail, your changes will still be committed.  |

## How it works

* [Version Control with IntelliJ IDEA](version-control-integration.html)

* [Commit and push changes](commit-and-push-changes.html)

