.editorconfig 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. # EditorConfig is awesome: http://EditorConfig.org
  2. # Since OBS follows the Linux kernel coding style I have started this file to
  3. # help with automatically setting various text editors to those requirements.
  4. # top-most EditorConfig file
  5. root = true
  6. # Unix-style newlines with a newline ending every file.
  7. [*]
  8. insert_final_newline = true
  9. trim_trailing_whitespace = true
  10. charset = utf-8
  11. indent_style = tab
  12. indent_size = 8
  13. # As per notr1ch, for 3rd party code that's a part of obs-outputs.
  14. [plugins/obs-outputs/librtmp/*.{cpp,c,h}]
  15. indent_style = space
  16. indent_size = 4
  17. [CMakeLists.txt]
  18. indent_style = space
  19. indent_size = 2
  20. [**/CMakeLists.txt]
  21. indent_style = space
  22. indent_size = 2
  23. [cmake/**/*.cmake]
  24. indent_style = space
  25. indent_size = 2
  26. [plugins/{rtmp-services,win-capture}/data/**/*.json]
  27. indent_style = space
  28. indent_size = 4
  29. [*.qss]
  30. indent_style = space
  31. indent_size = 4
  32. [build-aux/**/*.json]
  33. indent_style = space
  34. indent_size = 4
  35. [*.py]
  36. indent_style = space
  37. indent_size = 4
  38. [*.yaml]
  39. indent_style = space
  40. indent_size = 2
  41. [{*.zsh,.*.zsh,build-aux/.functions/*,.github/scripts/utils.zsh/*}]
  42. indent_style = space
  43. indent_size = 2
  44. [*.ui]
  45. indent_style = space
  46. indent_size = 1
  47. [{*.obt,*.oha,*.ovt}]
  48. indent_style = space
  49. indent_size = 4