.editorconfig 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. # EditorConfig: https://editorconfig.org/
  2. # top-most EditorConfig file
  3. root = true
  4. # All (Defaults)
  5. [*]
  6. charset = utf-8
  7. indent_style = space
  8. indent_size = 4
  9. insert_final_newline = true
  10. trim_trailing_whitespace = true
  11. end_of_line = lf
  12. # C/C++
  13. [*.{c,h,cpp}]
  14. indent_style = space
  15. indent_size = 4
  16. end_of_line = lf
  17. curly_bracket_next_line = false
  18. spaces_around_brackets = outside
  19. indent_brace_style = K&R
  20. spaces_around_operators = hybrid
  21. # Python
  22. [*.py]
  23. indent_style = space
  24. indent_size = 4
  25. continuation_indent_size = 2
  26. # YAML
  27. [*.yml]
  28. indent_style = space
  29. indent_size = 2
  30. # Shell Script
  31. [*.sh]
  32. indent_style = space
  33. indent_size = 4
  34. # Windows Command Script
  35. [{*.cmd,*.bat}]
  36. end_of_line = crlf
  37. indent_style = tab
  38. indent_size = 8
  39. # Valgrind Suppression File
  40. [*.supp]
  41. indent_style = space
  42. indent_size = 3
  43. # CMake
  44. [{CMakeLists.txt,*.cmake}]
  45. indent_style = space
  46. indent_size = 2
  47. # Makefile
  48. [{Makefile,Makefile.*}]
  49. indent_style = tab
  50. indent_size = 8
  51. # Markdown
  52. [{*.md,*.MD}]
  53. indent_style = space
  54. indent_size = 2
  55. trim_trailing_whitespace = false
  56. # Rst
  57. [*.rst]
  58. indent_style = space
  59. indent_size = 4