.editorconfig 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. # see http://editorconfig.org/ for docs on this file
  2. [*]
  3. indent_style = space
  4. indent_size = 4
  5. end_of_line = lf ; help with sharing files across os's (i.e. network share or through local vm)
  6. #charset temporarily disabled due to bug in VS2017 changing to UTF-8 with BOM (https://favro.com/card/c564ede4ed3337f7b17986b6/Uni-17877)
  7. #charset = utf-8
  8. trim_trailing_whitespace = true
  9. insert_final_newline = true
  10. # trailing whitespace is significant in markdown (bad choice, bad!)
  11. [*.{md,markdown}]
  12. trim_trailing_whitespace = false
  13. # keep these and the VS stuff below in sync with .hgeol's CRLF extensions
  14. [*.{vcproj,bat,cmd,xaml,tt,t4,ttinclude}]
  15. end_of_line = crlf
  16. # this VS-specific stuff is based on experiments to see how VS will modify a file after it has been manually edited.
  17. # the settings are meant to closely match what VS does to minimize unnecessary diffs. this duplicates some settings in *
  18. # but let's be explicit here to be safe (in case someone wants to copy-paste this out to another .editorconfig).
  19. [*.{vcxproj,vcxproj.filters}]
  20. indent_style = space
  21. indent_size = 2
  22. end_of_line = crlf
  23. charset = utf-8-bom
  24. trim_trailing_whitespace = true
  25. insert_final_newline = false
  26. # must be broken out because of 51-char bug (https://github.com/editorconfig/editorconfig-visualstudio/issues/21)
  27. [*.{csproj,pyproj,props,targets}]
  28. indent_style = space
  29. indent_size = 2
  30. end_of_line = crlf
  31. charset = utf-8-bom
  32. trim_trailing_whitespace = true
  33. insert_final_newline = false
  34. [*.{sln,sln.template}]
  35. indent_style = tab
  36. indent_size = 4
  37. end_of_line = crlf
  38. charset = utf-8
  39. trim_trailing_whitespace = true
  40. insert_final_newline = false
  41. [*.asmdef]
  42. scrape_api = true