Skip to content

Instantly share code, notes, and snippets.

@chusiang
Last active May 26, 2020 05:34
Show Gist options
  • Save chusiang/bac6c58afbe71e0de6295a7e3bddad45 to your computer and use it in GitHub Desktop.
Save chusiang/bac6c58afbe71e0de6295a7e3bddad45 to your computer and use it in GitHub Desktop.
The .editorconfig for my Ansible Playbooks project.
# EditorConfig is awesome: https://EditorConfig.org
# top-most EditorConfig file
root = true
# Unix-style newlines with a newline ending every file
[*]
end_of_line = lf
insert_final_newline = true
# Matches multiple files with brace expansion notation
# Set default charset
[*.{js,py}]
charset = utf-8
# 2 space indentation
[*.{yml,sh},Vagrantfile,Dockerfile*]
indent_size = 2
indent_style = space
# 4 space indentation
[*.{py,md}]
indent_size = 4
indent_style = space
# Tab indentation (no size specified)
[Makefile]
indent_style = tab
tab_width = 8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment