1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

PhpStorm10にアップデートしてからインデントがおかしい

Posted at

PhpStorm10にアップデートしてからインデントがおかしい場合

PhpStorm10にしてからオートインデントの挙動がおかしい

配列やメソッドチェーンの際にインデントが1つ多くなってしまいます。

// こうなってほしいのに
$foo = [
    'hello',
    'world',
];

// こうなってしまう
$foo = [
        'hello',
        'world',
];

問題は認識されている様子

https://youtrack.jetbrains.com/issue/WI-29726
https://youtrack.jetbrains.com/issue/WI-28981

暫定対応

Settings > Editor > Code Style
Indents Detection から
"Disabling detection of intendation" のチェックを外すと改善することがあるようです。

参考)
https://devnet.jetbrains.com/message/5564005;jsessionid=C3C426BA8B3FA83EB5E379DBF2A35C2F

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?