From my experience there are 2 major (very different) coding standards: PSR-12 and WordPress. One can have it's own preferences, or pick some rules from one or the other, but in general, most projects are either PSR-12 or WordPress.

If I have to switch between developing a Laravel project and then switch to a WordPress plugin, I will need to go one by one through all format rules between one or the other. Specially after purchasing the pro license, there are a lot of flags.

Could there be a way to switch between PSR-12 / WordPress standards? I could manually customize rules after applying the switch, but as an initial setup that would be great.

Thank you.

    StuardoRodriguez Thank you for the question.

    Please use the setting "php.format.codeStyle" in your workspace's .vscode/settings.json (workspace-wide settings)

    {
      "php.format.codeStyle": "psr-12",
    }

    The code styles available are listed at https://docs.devsense.com/en/vscode/editor/code-styles

    (please note, if you have set specific format rules, they override the selected codestyle)

      5 days later
      Write a Reply...