mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-25 09:00:22 +00:00
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.
This commit is contained in:
parent
fff49ab6d3
commit
7fbc8bf719
Notes:
sideshowbarker
2024-07-17 05:01:20 +09:00
Author: https://github.com/kemzeb Commit: https://github.com/SerenityOS/serenity/commit/7fbc8bf719 Pull-request: https://github.com/SerenityOS/serenity/pull/23318 Reviewed-by: https://github.com/ADKaster ✅
1 changed files with 1 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue