diff --git a/Sming/build.mk b/Sming/build.mk index b4d50a34f9..2dc96401f2 100644 --- a/Sming/build.mk +++ b/Sming/build.mk @@ -140,7 +140,7 @@ CMAKE ?= cmake # clang-format command DEBUG_VARS += CLANG_FORMAT -CLANG_FORMAT ?= clang-format +CLANG_FORMAT ?= clang-format-8 # more tools DEBUG_VARS += AWK diff --git a/docs/source/information/develop/clang-tools.rst b/docs/source/information/develop/clang-tools.rst index a9482eb324..41e5606794 100644 --- a/docs/source/information/develop/clang-tools.rst +++ b/docs/source/information/develop/clang-tools.rst @@ -62,6 +62,8 @@ IDE integration There are multiple existing integrations for IDEs. You can find details in the `ClangFormat documentation `__. +For VS Code/Codium install the **clang-format** extension and configure the path with the location of the **clang-format-8** executable. + For the Eclipse IDE we recommend installing the `CppStyle plugin `__. You can configure your IDE to auto-format the code on "Save" using the