.editorconfig 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. ; see http://editorconfig.org/ for docs on this file
  2. root = true
  3. [*]
  4. ignore_if_in_header = This code was generated by a tool|<auto-generated>
  5. indent_style = space
  6. indent_size = 4
  7. ; uncomment to help with sharing files across os's (i.e. network share or through local vm)
  8. #end_of_line = lf
  9. ; avoid a bom, which causes endless problems with naive text tooling
  10. charset = utf-8
  11. trim_trailing_whitespace = true
  12. insert_final_newline = true
  13. ; keeping auto-format enabled helps avoid merge hell for projects without CI-based format validation
  14. #disable_auto_format = true
  15. [*.cs]
  16. ; uncomment to enable full formatting of c# files
  17. formatters = generic, uncrustify
  18. [*.asmdef]
  19. scrape_api = false
  20. [**/Tests/**.asmdef]
  21. scrape_api = false
  22. [*.Tests.asmdef]
  23. scrape_api = false
  24. [*.md]
  25. indent_size = 2
  26. ; trailing whitespace is unfortunately significant in markdown
  27. trim_trailing_whitespace = false
  28. ; uncomment to enable basic formatting of markdown files
  29. #formatters = generic
  30. [{Makefile,makefile}]
  31. ; tab characters are part of the Makefile format
  32. indent_style = tab
  33. [*.asmdef]
  34. indent_size = 4
  35. [*.json]
  36. indent_size = 2
  37. [*.{vcproj,bat,cmd,xaml,tt,t4,ttinclude}]
  38. end_of_line = crlf
  39. ; this VS-specific stuff is based on experiments to see how VS will modify a file after it has been manually edited.
  40. ; the settings are meant to closely match what VS does to minimize unnecessary diffs.
  41. [*.{vcxproj,vcxproj.filters}]
  42. indent_style = space
  43. indent_size = 2
  44. end_of_line = crlf
  45. charset = utf-8-bom
  46. trim_trailing_whitespace = true
  47. insert_final_newline = false
  48. ; must be broken out because of 51-char bug (https://github.com/editorconfig/editorconfig-visualstudio/issues/21)
  49. [*.{csproj,pyproj,props,targets}]
  50. indent_style = space
  51. indent_size = 2
  52. end_of_line = crlf
  53. charset = utf-8-bom
  54. trim_trailing_whitespace = true
  55. insert_final_newline = false
  56. [*.{sln,sln.template}]
  57. indent_style = tab
  58. indent_size = 4
  59. end_of_line = crlf
  60. charset = utf-8
  61. trim_trailing_whitespace = true
  62. insert_final_newline = false