From 92c97db7f9f0929db52aa7f99923a48db8a8c379 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Remko=20Tron=C3=A7on?= Date: Sun, 22 May 2022 16:38:54 +0200 Subject: [PATCH] vscode: Add C auto-formatting --- .clang-format | 6 ++++++ .vscode/settings.json | 3 +++ 2 files changed, 9 insertions(+) create mode 100644 .clang-format diff --git a/.clang-format b/.clang-format new file mode 100644 index 0000000..c63870a --- /dev/null +++ b/.clang-format @@ -0,0 +1,6 @@ +--- +BasedOnStyle: LLVM +ColumnLimit: 150 +--- +Language: Cpp +AllowShortFunctionsOnASingleLine: Empty diff --git a/.vscode/settings.json b/.vscode/settings.json index 6937aac..a4f7843 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -32,5 +32,8 @@ "[css]": { "editor.defaultFormatter": "esbenp.prettier-vscode", "editor.formatOnSave": true + }, + "[c]": { + "editor.formatOnSave": true } }