1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-03-13 02:05:40 +08:00

docs(c/c++): update c/c++ tutorial

This commit is contained in:
wsdjeg 2022-06-03 19:49:36 +08:00
parent f8a4655464
commit 6a56c58a1c

View File

@ -114,13 +114,9 @@ lint for C/C++ is `gcc`/`g++`. These commands also read configuration in `.clang
### code format
The format layer use neoformat as default tool to format code, it will format current file.
And the default key binding is `SPC b f`.
```toml
[[layers]]
name = "format"
```
In order to be able to format C/C++ files, you need to install `uncrustify`, `clangformat` or `astyle`.
The key binding `SPC b f` is defineded in [format](../layers/format/) layer which is loaded by default.
In this layer, the default format engine is `neoformat`.
### REPL support