Skip to content

Instantly share code, notes, and snippets.

@minton
Last active March 14, 2018 15:44
Show Gist options
  • Save minton/96493f4b820018b3f0db35eacb40919b to your computer and use it in GitHub Desktop.
Save minton/96493f4b820018b3f0db35eacb40919b to your computer and use it in GitHub Desktop.
Decent Setup for VS
; EditorConfig VS add-in required
; http://editorconfig.org/
root = true
[*]
end_of_line = CRLF
[*.{config,cs,xml}]
indent_style = space
indent_size = 4
trim_trailing_whitespace = true
[*.{proj,props,sln,targets}]
indent_style = tab
trim_trailing_whitespace = true
[*.{kproj,csproj,json,ps1,psd1,psm1,resx,rst}]
indent_style = space
indent_size = 2
trim_trailing_whitespace = true
[NuGet.Config]
indent_style = space
indent_size = 2
trim_trailing_whitespace = true
* text=auto
# These files are text and should be normalized (convert crlf -> lf)
*.c text eol=crlf
*.h text eol=crlf
*.cpp text eol=crlf
*.cs text diff=csharp eol=crlf
*.xml text eol=crlf
*.xaml text eol=crlf
*.xsd text eol=crlf
*.csproj text eol=crlf
*.config text eol=crlf
*.sln text eol=crlf
*.tt text eol=crlf
*.ps1 text eol=crlf
*.cmd text eol=crlf
*.bat text eol=crlf
*.fsx text eol=crlf
*.msbuild text eol=crlf
*.md text eol=crlf
*.DotSettings text eol=crlf
*.saproj text eol=crlf
lbuild text eol=lf
# Images should be treated as binary
# (binary is a macro for -text -diff)
*.bak filter=lfs diff=lfs merge=lfs -text
*.gif binary
*.bmp binary
*.png binary
*.jpg binary
*.jepg binary
*.ico binary
*.fla binary
*.swf binary
*.prx binary
*.sdf binary
*.db binary
*.dll binary
*.exe filter=lfs diff=lfs merge=lfs -text
*.msi filter=lfs diff=lfs merge=lfs -text
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment