Skip to content

Instantly share code, notes, and snippets.

@voku
Created October 11, 2018 21:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save voku/5017fa9fdc68eb2b29fc1fc2eae8c4f0 to your computer and use it in GitHub Desktop.
Save voku/5017fa9fdc68eb2b29fc1fc2eae8c4f0 to your computer and use it in GitHub Desktop.
.editorconfig - example
# For more information about the properties used in
# this file, please see the EditorConfig documentation:
# http://editorconfig.org/
# top-most EditorConfig file
root = true
# Unix-style newlines + UTF-8 encoding
[*]
charset=utf-8
end_of_line=lf
insert_final_newline=false
indent_style=space
indent_size=2
[{*.sht,*.html,*.shtm,*.shtml,*.ng,*.htm}]
indent_style=space
indent_size=2
[{*.mod,*.dtd,*.ent,*.elt}]
indent_style=space
indent_size=2
[{phpunit.xml.dist,*.jhm,*.rng,*.wsdl,*.fxml,*.xslt,*.jrxml,*.ant,*.xul,*.xsl,*.xsd,*.tld,*.jnlp,*.xml}]
indent_style=space
indent_size=2
[{*.applejs,*.js}]
indent_style=space
indent_size=2
[{*.module,*.hphp,*.phtml,*.php4,*.php2,*.php,*.inc}]
indent_style=space
indent_size=2
[*.svg]
indent_style=space
indent_size=2
[{*.css,*.less,*.scss,*.sass}]
indent_style=space
indent_size=2
[{*.yml,*.yaml}]
indent_style=space
indent_size=2
[*.neon]
indent_style=space
indent_size=2
[{Makefile,**.mk}]
# Use tabs for indentation (Makefiles require tabs)
indent_style = tab
[*.md]
trim_trailing_whitespace = false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment