# Configuração base de estilo

Estilo de código é o começo para alcançarmos excelente código.

Nesta seção você irá encontrar padrões e dicas gerais.

## EditorConfig

O EditorConfig ajuda desenvolvedores a definir e manter um estilo consistente entre diferentes editores e IDEs. Ele consiste num formato de arquivo para definição de estilos de código, o `.editorconfig`, e numa coleção de plugins para diferentes editores que conseguem ler essa definição e formatar o seu código no estilo definido.

Nosso `.editorconfig` padrão é apresentado abaixo:

```
root = true

[*]
indent_style = space
# Unix-style line endings
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[*.md]
trim_trailing_whitespace = false
```

Crie esse arquivo na raíz do seu projeto e baixe o plugin de acordo com o seu editor/IDE, no link abaixo:

<http://editorconfig.org/#download>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://vizir.gitbook.io/jeito-vizir/estilos/estilo-base.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
