Skip to content

Formatter

You are viewing the next version (v6.7) of the documentation.
Click here to switch to the stable version (v6.6), or use the version switcher on the left to navigate between versions.

Formatter

Shopware-CLI comes with a built-in formatter for PHP, JavaScript, CSS, SCSS, and Admin Twig files.

To run the formatter, you can use the following command:

Formatting an extension

Formatting an entire project

By default, the formatting is done by Shopware Coding Standard. You can configure the formatting by creating a .php-cs-fixer.dist.php in your extension root or a .prettierrc file for JavaScript, CSS, and SCSS files.