Alexander Mann Alexander Mann - 6 months ago 52
Git Question

Disable automatic code rearrangement in Intellij IDEA

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.

enter image description here

and un-tick Rearrange code.

Refer this for more.