Home  >  Article  >  Development Tools  >  How to format an array in phpstorm

How to format an array in phpstorm

(*-*)浩
(*-*)浩Original
2020-01-08 15:51:144414browse

How to format an array in phpstorm

# generally, the ideal state of our array after formatting is: (Recommended learning: PHPSTORM )

   $categories_faker = [
            "校门",
            "图书馆",
            "宿舍",
            "快递",
            "食堂",
            "1号楼",
            "2号楼",
            "实验室",
        ];

So how to set up phpstorm so that the formatted back group appears in the above format?

File ==> Settings ==> Code Style ==> PHP

Find the Array initializer under Wraping and Braces

How to format an array in phpstorm##Settings

How to format an array in phpstorm

How to format an array in phpstorm

## above, click Apply to apply.

The above is the detailed content of How to format an array in phpstorm. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn