-
PHP: based on Symfony2
- empty line before the return statement
- no comma after last array item
-
JavaScript/Typescript: based on JavaScript Standard Style
- indent 4 spaces
- semi-colons
- chained indented calls
-
vue.js Components (.vue)
- same as Typescript
-
SCSS/LESS: based on PhpStorm Default
- indent 4 spaces
-
HTML: based on PhpStorm Default
- Wrap attributes = Chop down if long
-
File > Settings
-
Editor > Code Style
-
Select the three dots next to Scheme
-
Select Import Scheme …
-
Select IntelliJ Idea Code Style XML
-
Select the XML file and import
-
File > Settings
-
Editor > Inspections
-
Select the three dots next to Profile
-
Select Import Profile …
-
Select Profile Default.xml
-
Select the XML file and import
- Open your project
- Follow steps 1-3 as above
- Select Copy to Project … and confirm the following dialog (Overwrite)
- Apply the new styles to your project
- PHP: ignore PHPDoc comments if type hints are sufficient
- File > Settings
- Editor > Inspections
- Select the three dots next to Profile
- Select Import Profile …
- Select Profile Default.xml
- Select the XML file and import