Configure PhpStorm for Drupal coding standards | Drupal 8

Configure PhpStorm for Drupal coding standards

Submitted by editor on Fri, 05/04/2018 - 10:36
Question

How to configure phpstorm for drupal coding standards / Development ?

Change default settings of PhpStorm.

File -> Default settings -> Editor -> Code Style -> PHP

Drupal recommends less than 80 characters per line.
Set "Tab size", "Indent" and "Continuation indent" to 2

On the "Wrapping and Braces tab", make sure these settings are set correctly:

Keep control statements in one line should be unchecked
Place braces in class declaration should be unchecked
Place braces in function declaration should be unchecked
Always force braces for if() statements should be checked
Force braces for while() statements should be checked
Else on new line for if() statements should be checked
'While' on new line for do...while() statements should be checked
'Catch' on new line for for try() statements should be checked
Chop down Array initializer if long should be checked
New line after ( for Array initializer should be checked
Place ) on new line for Array initializer should be checked

You can also use my predefined file from hear : Default_PhpStorm_Style.xml_.zip
Import download the file, unzip and Import from :
File -> Default settings -> Editor -> Code Style
--> Gear icon -> Import scheme -> Intelij....XML

 

Tags

Comments

AlfredLandy (not verified)

Wed, 06/20/2018 - 08:40

It was really helpful to read your post on Configure Php Storm for Drupal coding standards. Because I was in search of this configuration settings. Your post was much helpful for me, as you explained simple words and that too clearly by step by step. If you are in search of online writing service then please contact with the  best essay writing service which will help you to achieve genuine essays at cheap price and in short time period. Thanks for sharing this post with us.

R HILDAN M (not verified)

Fri, 12/14/2018 - 16:57

ini ke 16 Jual besi cnp undangan pernikahan animasi Harga Plat Bordes Kembang Pabrik Besi H beam Baja Pabrik Plat Bordes harga besi beton psi Ulir Polos Distributor Besi Beton Distributor Besi Beton Jual baja ringan www.gudangbesibaja.com undangan pernikahan cantik Harga Plat Besi Hitam Distributor Atap Spandek Distributor Bondek Cor harga besi beton perwira Harga Besi Beton Harga Besi Beton Jual bondek harga besi Wf Baja undangan pernikahan cantik elegan sewa villa bukit danau Harga Plat Kapal Bki Krakatau Steel Supplier Atap Spandek Harga Bondek Cor harga besi beton PAS Jual Besi Beton Jual Besi Beton Jual Plat kapal besi baja bki krakatau steel Harga bondek undangan pernikahan cetak Harga Jual Besi Siku Baja Agen Atap Spandek Jual Bondek Cor harga besi beton master steel ms Supplier Besi Beton Supplier Besi Beton Jual besi siku harga wiremesh undangan pernikahan custom Harga Besi Unp Baja Profil Kanal Toko Atap Spandek Supplier Bondek Cor harga besi beton ksty Toko Besi Beton Toko Besi Beton Jual pipa besi baja sch 40 sch 80 Harga pipa besi baja sch 40 sch 80 undangan pernikahan bagus Harga Besi Cnp Profil Baja Gording Jual Atap Spandek Toko Bondek Cor harga besi beton krakatau steel Agen Besi Beton Agen Besi Beton Jual Plat besi harga besi hollow undangan pernikahan anime Harga Besi Hollow Harga Atap Spandek Agen Bondek Cor harga besi beton jcac Pabrik Besi Beton Pabrik Besi Beton Jual besi h beam harga besi beton Sni Ulir Polos undangan pernikahan aneh Harga Wiremesh Pabrik Atap Spandek Pabrik Bondek Cor harga besi beton interworld steel is

Add new comment