Skip to content

Instantly share code, notes, and snippets.

@xt0rted
Last active March 10, 2019 18:16
Show Gist options
  • Save xt0rted/2a28578ad04f94654630310f510c06b6 to your computer and use it in GitHub Desktop.
Save xt0rted/2a28578ad04f94654630310f510c06b6 to your computer and use it in GitHub Desktop.
root = true
[*]
charset = utf-8
end_of_line = crlf
insert_final_newline = true
indent_size = 4
indent_style = space
trim_trailing_whitespace = true
[*.cmd]
charset = utf-8
# Proper encoding when using ‘’ and “”
[*.{cs,cshtml}]
charset = utf-8-bom
[*.{csproj,props}]
indent_size = 2
insert_final_newline = false
[*.json]
indent_size = 2
[*.props]
indent_size = 2
[*.yml]
indent_size = 2
# Without this VS/R# can't make up its mind on using utf-8 or utf-8-bom
[{app,web}.config]
charset = utf-8
[packages.config]
indent_size = 2
insert_final_newline = false
# NPM changes CRLF to LF so this prevents phantom commits when you add the following to .gitattributes
# package.json text eol=lf
# package-lock.json text eol=lf
[{package.json,package-lock.json}]
end_of_line = lf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment