phpstorm Code Format Settings

phpstorm is designed to improve user efficiency, a deep understanding of user code, provides smart code completion, quick navigation and real-time error checking. PHP with modern and compatible with older versions, and also has code completion, dynamic error prevention, reconstruction and mixed language support. Through continuous analysis of the entire project, a large number of checks to ensure that you type the code quality.12135355_86dd59d87a.jpeg

phpstorm Tutorial

phpstorm code formatter provided the following steps:
formatting code
select the Reformat Code, phpStorm will be according to the set code style, formatting codes automatically 12135847_805ecb0a7d.jpegsetting code style, alignment to achieve the equal sign
path: Editor / Code Style / PHP / Wrapping and Braces
hook before the election 12135900_21b6772e62.jpegafter checking the 12135912_4bfb37d76e.jpegsetting code style, to achieve the alignment of the array of key
path: Editor / code style / PHP / Other
before checking 12135958_303e0911b8.jpegthe check 12140006_7e140d3157.jpegFurther, after phpstorm set, the setting information may be derived, for subsequent installation after used again.12140031_f557127c2a.jpeg

Guess you like

Origin blog.51cto.com/14370425/2426252