在 PhpStorm 中推送到 Git 时,Reformat 代码会做什么以及在哪里设置它?

What does Reformat code do when pushing to Git in PhpStorm and where to set it?

我发现有一个选项可以重新格式化 代码,然后再提交 到Git 存储库。当我看到这个时,我的想法是我可以对 myself 和 fxp 使用 两种不同的格式team/company。这是这个选项应该做什么吗?如果是这样,我可以在哪里指定 用于提交的代码格式重新格式化和重新排列代码之间的区别是什么?

我在 PhpStorm 文档中试过运气,但我只找到了在哪里为本地 Reformat 选项设置代码格式。

提前致谢

My idea when I saw this was that I can use two different formatting for myself and fxp. team/company. Is this what is this option suppose to do?

没有。 Before commit 中的 Reformat codeCode/Reformat code... 相同 - 即它根据您的项目代码样式首选项 (Settings (Preferences) | Editor | Code Style) 格式化提交的文件。

Rearrange Code 命令 sorts/groups 文件中的语句(与 Code/Rearrange Code 相同)根据排列首选项(如果有)(https://www.jetbrains.com/help/phpstorm/2016.1/code-style-php.html?from=old_help#d468513e1246)。