.editorconfig 798 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. # C/C++
  2. [*.{c,cc,h,hh,inl,glsl}]
  3. charset = utf-8
  4. trim_trailing_whitespace = true
  5. insert_final_newline = true
  6. indent_style = space
  7. indent_size = 2
  8. max_line_length = 99
  9. # CMake & Text
  10. [*.{cmake,txt}]
  11. charset = utf-8
  12. trim_trailing_whitespace = true
  13. insert_final_newline = true
  14. indent_style = space
  15. indent_size = 2
  16. max_line_length = 99
  17. # Python
  18. [*.py]
  19. charset = utf-8
  20. trim_trailing_whitespace = true
  21. insert_final_newline = true
  22. indent_style = space
  23. indent_size = 4
  24. max_line_length = 120
  25. # Shell
  26. [*.sh]
  27. charset = utf-8
  28. trim_trailing_whitespace = true
  29. insert_final_newline = true
  30. indent_style = space
  31. indent_size = 2
  32. max_line_length = 99
  33. # reStructuredText
  34. [*.rst]
  35. charset = utf-8
  36. trim_trailing_whitespace = true
  37. insert_final_newline = true
  38. indent_style = space
  39. indent_size = 3
  40. max_line_length = 120