1 # EditorConfig is awesome: https://EditorConfig.org 2 3 # top-most EditorConfig file 4 root = true 5 6 # 2 spaces indentation, Unix-style newlines with a newline ending every file 7 [*] 8 end_of_line = lf 9 charset = utf-8 10 indent_size = 2 11 indent_style = space 12 insert_final_newline = true 13 trim_trailing_whitespace = true 14 15 # Tab indentation 16 [{Makefile,Makefile.*}] 17 indent_size = 8 18 indent_style = tab 19 20 # 4 spaces indentation 21 [*.{h,c}] 22 indent_size = 4 23 indent_style = space