Skip to content

Instantly share code, notes, and snippets.

@luiscoms
Last active July 25, 2019 12:56
Show Gist options
  • Save luiscoms/77ec062068a307094850825d539cf2d5 to your computer and use it in GitHub Desktop.
Save luiscoms/77ec062068a307094850825d539cf2d5 to your computer and use it in GitHub Desktop.
Editor Config
# Se tiver essa diretiva, a recursividade para, ou seja,
# esse é o arquivo raiz da configuração
root = true
# Comentários podem começar com ; ou #
# Pra todos os arquivos
# [*]
# Para arquivos em extensões abaixo
[{*.{c,cpp,conf,cfg,js,py,php,sh},Makefile}]
# Defino que serão todos utf-8
charset = utf-8
# Não devem conter espaços em branco no final da linha
trim_trailing_whitespace = true
# Caracter de final de linha estilo linux
end_of_line = lf
# Deve conter uma linha ao final do arquivo
insert_final_newline = true
# Indentação em 4 espaços
indent_style = space
indent_size = 4
# Para arquivos JSON e YAML
[*.{json,yml}]
# Indentação em 2 espaços
indent_style = space
indent_size = 2
# Para arquivos Makefile
[{.gitignore,.dockerignore}]
trim_trailing_whitespace = false
[Makefile]
# Indentação deve ser por tabs
indent_style = tab
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment