From 7fbc8bf7195fe91176c6b33a6c7ab3d953c0a039 Mon Sep 17 00:00:00 2001 From: Kemal Zebari Date: Fri, 23 Feb 2024 10:57:31 -0800 Subject: [PATCH] Documentation: Recommend using clangd for code formatting in VSCode Turns out clangd supports code formatting using the clang-format engine. Because we also document another code formatter to install, when users use both extensions VSCode will ask to choose one or the other. Therefore, let's just choose clangd for code formatting since it is needed anyways for code comprehension. --- Documentation/VSCodeConfiguration.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Documentation/VSCodeConfiguration.md b/Documentation/VSCodeConfiguration.md index 86543f3de9b..4ebdf11ddba 100644 --- a/Documentation/VSCodeConfiguration.md +++ b/Documentation/VSCodeConfiguration.md @@ -7,7 +7,6 @@ The WSL Remote extension allows you to use VS Code in Windows while using the no The recommended extensions for VS Code include: - [clangd](https://marketplace.visualstudio.com/items?itemName=llvm-vs-code-extensions.vscode-clangd) -- [clang-format](https://marketplace.visualstudio.com/items?itemName=xaver.clang-format) - [GitLens](https://marketplace.visualstudio.com/items?itemName=eamodio.gitlens) ## Code comprehension @@ -119,7 +118,7 @@ following ``c_cpp_properties.json`` to circumvent some errors. Even with the con ## Formatting -The [clang-format extension](https://marketplace.visualstudio.com/items?itemName=xaver.clang-format) works out of the box. ``clang-format`` support is also included with the Microsoft C/C++ tools (see above). The settings below include a key that makes the Microsoft extension use the proper style. +clangd provides code formatting out of the box using the ``clang-format`` engine. ``clang-format`` support is also included with the Microsoft C/C++ tools (see above). The settings below include a key that makes the Microsoft extension use the proper style. ## Settings