Help us understand the problem. What is going on with this article?

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

More than 1 year has passed since last update.

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

yotsak83
web application engineer, painter. php/javascript/scala
fancs
日本最大規模の広告配信プラットフォームを開発しているアドテクノロジーエンジニアチームです
https://www.fancs.com/
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
No comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
ユーザーは見つかりませんでした