LoginSignup
3
1

More than 5 years have passed since last update.

IntelliJ(PhpStrom)で横に長い配列を縦並び(1行1要素)に整形する設定

Posted at

ver.

IntelliJ IDEA ULTIMATE 2017.3

PHPの横に長ーい配列記述を縦並び(1行1要素)に整形する設定。

Prefernce > Editor > Code Style > PHP > Wrapping and Braces
Array initializer > 右どなりの `Do not wrap` をクリックしプルダウンから `Wrap always` を選択。

該当ソースコードを選択後、

Command + Option + L

で整形される。

以下の様にチェックしておくと大体、良い感じに整形してくれるみたい。

スクリーンショット 2018-04-20 10.22.08.png

$array = array(1,2,3,4,5,);



$array = array(
    1,
    2,
    3,
    4,
    5,
);

参考
https://pleiades.io/help/idea/settings-code-style-php.html#d942688e620

3
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
3
1