From 21cfb151a825f555c65fe32e865865388ca7fd8c Mon Sep 17 00:00:00 2001 From: Kevin Hester Date: Fri, 19 Mar 2021 15:24:05 +0800 Subject: [PATCH] specify clang for c++ formatting conventions --- .github/pull_request_template.md | 2 +- .vscode/extensions.json | 3 ++- .vscode/settings.json | 3 ++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md index 8b7b4592..9ef8f77c 100644 --- a/.github/pull_request_template.md +++ b/.github/pull_request_template.md @@ -7,7 +7,7 @@ is appreciated." This will allow other devs to potentially save you time by not accidentially duplicating work etc... - Please do not check in files that don't have real changes - Please do not reformat lines that you didn't have to change the code on -- We recommend using the [Visual Studio Code](https://platformio.org/install/ide?install=vscode) editor, +- We recommend using the [Visual Studio Code](https://platformio.org/install/ide?install=vscode) editor and the 'clang-format' extension, because automatically follows our indentation rules and it's auto reformatting will not cause spurious changes to lines. - If your PR fixes a bug, mention "fixes #bugnum" somewhere in your pull request description. - If your other co-developers have comments on your PR please tweak as needed. diff --git a/.vscode/extensions.json b/.vscode/extensions.json index 0f0d7401..27bdd05a 100644 --- a/.vscode/extensions.json +++ b/.vscode/extensions.json @@ -2,6 +2,7 @@ // See http://go.microsoft.com/fwlink/?LinkId=827846 // for the documentation about the extensions.json format "recommendations": [ - "platformio.platformio-ide" + "platformio.platformio-ide", + "xaver.clang-format" ] } diff --git a/.vscode/settings.json b/.vscode/settings.json index b89870c5..5ce21fa3 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -77,5 +77,6 @@ "--java_out=/tmp", "-I=/home/kevinh/development/meshtastic/meshtastic-esp32/proto" ] - } + }, + "editor.formatOnSave": true } \ No newline at end of file