未应用代码样式

Code Style not applied

我正在尝试更改 PHP Code Style 设置 Settings|Editor|Code Style|PHP

Scheme 下拉菜单中 select Project 然后更改一些内容。我终于点击了Apply。我打开一个要格式化的 PHP 文件,然后按 Ctrl+Alt+L,弹出 Reformat Code 对话框,然后单击 Run。好吧,代码实际上是格式化的,但它没有使用修改后的设置。

我可能遗漏了一些明显的东西...请帮助我。

谢谢

更多详情

我正在尝试改变这个:

array(
    'key1' => 'value1',
    'hello' => 'world',
    'a' => 123
);

进入这个:

array(
    'key1'  => 'value1',
    'hello' => 'world',
    'a'     => 123
);

通过检查 Settings|Editor|Code Style|PHP|Wrapping and Braces|Array initializer|Align when multiline

IDE 版本为 8.0.2

By checking Settings|Editor|Code Style|PHP|Wrapping and Braces|Array initializer|Align when multiline.

您使用的格式设置有误。

正确选项是PHP | Other | Array Declaration Style --> Align key-value pairs