vysker / vscode-php-formatter

Visual Studio Code extension. A wrapper for the Sensiolabs PHP CS Fixer. Analyzes some PHP source code and tries to fix coding standards issues (PSR-1 and PSR-2 compatible).
MIT License
93 stars 11 forks source link

Can formatting rules be configured? #32

Open ppazos opened 2 years ago

ppazos commented 2 years ago

I need a slightly custom format config (indentation, spaces after clauses, and enters on code blocks, but I'm not sure if I can configure these rules:

  1. 3 space indentation, no tabs
  2. if(....) => if (....) // added space after the if
  3. if (...) { => if (...) { // code block starts on next line, also ends on next line after the last clause in the block: if (...) { ... ... }

Thanks!

daslicht commented 1 year ago

I also need to customize the style. ~Marc