Alexander Mann Alexander Mann - 1 year ago 187
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?

Answer Source

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.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download