Skip to content

Instantly share code, notes, and snippets.

@PeterLehmann
Created October 18, 2016 08:03
Show Gist options
  • Save PeterLehmann/e378f54a8137f0c1cc7eb5c70ddd56d2 to your computer and use it in GitHub Desktop.
Save PeterLehmann/e378f54a8137f0c1cc7eb5c70ddd56d2 to your computer and use it in GitHub Desktop.
# EditorConfig is awesome:
# http://EditorConfig.org
# top-most EditorConfig file
root = true
# Default settings:
# A newline ending every file
# Use 4 spaces as indentation
# Trim trailing whitespace
[*]
insert_final_newline = true
indent_style = space
indent_size = 4
#end_of_line = crlf
charset = utf-8
trim_trailing_whitespace = true
[*.{asm,inc}]
indent_size = 8
# Xml project files
[*.{csproj,vcxproj,vcxproj.filters,proj,nativeproj,locproj}]
indent_size = 2
# Xml config files
[*.{props,targets,config,nuspec}]
indent_size = 2
[CMakeLists.txt]
indent_size = 2
[*.{cmd,ps1}]
indent_size = 2
[*.sh]
end_of_line = lf
indent_size = 2
[*.md]
end_of_line = lf
trim_trailing_whitespace = false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment