Run Inspections Before Commit

Catch all issues before your code before you commit it.

Committing error-free code reduces the time it takes for reviews to go happen and makes everyone happy. Since not all errors may be caught by tests, you can choose to run Inspections before a commit. This will improve your chances to have fewer bugs in code.

Invoke the Commit using ⌘K (macOS) / Ctrl+K (Windows/Linux), then select the Commit options, and select the Analyze code feature.


Related Resources

Search Text in Local History
Search Text in Local History
Find exactly what you are looking for, even if you removed it
Cleanup Code Before Commit
Cleanup Code Before Commit
Remove all the redundant parenthesis and other unneeded code before commit.
Sign Git Commits with GPG Keys
Sign Git Commits with GPG Keys
Improve the security of your commits by using GPG keys.