简体   繁体   English

禁用Intellij IDEA中的自动代码重新排列

[英]Disable automatic code rearrangement in Intellij IDEA

After I updated IntelliJ IDEA, it started to rearrange code before each git commit. 更新IntelliJ IDEA后,它开始在每次git提交之前重新排列代码。 I found rearrange rules in Settings > Editor > Code Style > Java but there is no checkbox for enable/disable feature. 我在“设置”>“编辑器”>“代码样式”>“Java”中找到了重新排列规则,但没有启用/禁用功能的复选框。
How can I disable it? 我该如何禁用它?

Go to View | 转到视图| Tool Windows | 工具窗口| Version Control - Local Changes tab- Right click the text " Default " - Commit Changes (or Arrow icon on the left hand sided toolbar inside Local Changes tab). 版本控制 - 本地更改选项卡 - 右键单击​​文本“ 默认 ” - 提交更改 (或本地更改”选项卡内左侧工具栏上的箭头图标)。 Find Before Commit section. 提交前查找”部分。

在此输入图像描述

and un-tick Rearrange code . 并取消勾选重新排列代码

Refer this for more. 请参阅为多。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM