How to format an array in phpstorm

(*-*)浩
Release: 2020-01-08 15:51:14
Original
4418 people have browsed it

How to format an array in phpstorm

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

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

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!