After I updated IntelliJ IDEA, it started to rearrange code before each git commit. I found rearrange rules in Settings > Editor > Code Style > Java but there is no checkbox for enable/disable feature.
How can I disable it?
Go to View | Tool Windows | Version Control - Local Changes - Context menu of a file or change list - Commit Changes. Find Before Commit section.
and un-tick Rearrange code.
Refer this for more.