浏览代码

Automatically add final newline & trim whitespace

Jorrit Rouwe 3 年之前
父节点
当前提交
702dc79ed8
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      .editorconfig

+ 3 - 0
.editorconfig

@@ -3,7 +3,10 @@ root = true
 [*.{cpp,h,inl,cmake}]
 [*.{cpp,h,inl,cmake}]
 indent_style = tab
 indent_style = tab
 tab_width = 4
 tab_width = 4
+trim_trailing_whitespace = true
+insert_final_newline = true
 
 
 [CMakeLists.txt]
 [CMakeLists.txt]
 indent_style = tab
 indent_style = tab
 tab_width = 4
 tab_width = 4
+trim_trailing_whitespace = true