> For the complete documentation index, see [llms.txt](https://totalsoft.gitbook.io/web-app-rocket-generator/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://totalsoft.gitbook.io/web-app-rocket-generator/built-in-architecture/code-formatting.md).

# Code formatting

The generated code is formatted using the **Prettier** formatter. A file named **.prettierrc** containing the formatting settings is placed in the root of the project.

For maintaining unitary style, the **.prettierrc** configuration file is read by other tools that run **Prettier** such as scripts or IDE extensions. For example if using **Visual Studio Code** we recommend installing the following extension [Prettier formatter](https://marketplace.visualstudio.com/items?itemName=esbenp.prettier-vscode)

In case the **.prettierrc** file is customized, the new settings will be used when re-running the generator. The only condition is to answer **no** when asked to overwrite this file.

The default prettier config file can be found here: [.prettierrc](https://github.com/osstotalsoft/generator-webapp-rocket/blob/master/generators/app/templates/infrastructure/.prettierrc)
