phpstorm如何格式化數(shù)組

phpstorm如何格式化數(shù)組

一般情況下我們的數(shù)組格式化后理想的狀態(tài)是這樣的:? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? (推薦學(xué)習(xí):phpstorm

???$categories_faker?=?[ ????????????"校門", ????????????"圖書館", ????????????"宿舍", ????????????"快遞", ????????????"食堂", ????????????"1號樓", ????????????"2號樓", ????????????"實驗室", ????????];

那么如何設(shè)置 phpstorm 讓格式化的后組呈現(xiàn)如上格式呢?

File ==> Settings ==> Code Style ==> php

找到?Wraping and Braces?下的?Array initializer

立即學(xué)習(xí)PHP免費學(xué)習(xí)筆記(深入)”;

phpstorm如何格式化數(shù)組設(shè)置

phpstorm如何格式化數(shù)組

phpstorm如何格式化數(shù)組

以上,點擊?Apply?應(yīng)用即可。

以上就是

? 版權(quán)聲明
THE END
喜歡就支持一下吧
點贊9 分享