IntelliJ自动重新格式化代码运行

时间:2017-09-01 07:14:29

标签: android-studio intellij-idea reformat

我想执行"重新格式代码"按下运行按钮时自动对整个项目执行操作。有没有办法做到这一点?

1 个答案:

答案 0 :(得分:4)

我看到两种可能性:

  1. 将行动RunReformat code配置为the same keyboard shortcut

  2. 使用reformat on save

  3. P.S。在任何项目中都必须有VCS。在IDEA内部使用它非常好,你应该学习如何使用它。提交对话框中有一个本机reformat on commit复选框。

相关问题