docs: adds information about the VSCode clang-format extension (#24351)
PR Close #24351
This commit is contained in:
parent
49c5234c68
commit
8aa70c2477
|
@ -123,6 +123,16 @@ You can automatically format your code by running:
|
||||||
$ gulp format
|
$ gulp format
|
||||||
```
|
```
|
||||||
|
|
||||||
|
There is a handy [clang-format extension](https://marketplace.visualstudio.com/items?itemName=xaver.clang-format)
|
||||||
|
for Visual Studio Code. Use the following settings to format your code when you save a file:
|
||||||
|
|
||||||
|
```json
|
||||||
|
{
|
||||||
|
"editor.formatOnSave": true,
|
||||||
|
"clang-format.executable": "${workspaceRoot}/node_modules/.bin/clang-format"
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
## Linting/verifying your source code
|
## Linting/verifying your source code
|
||||||
|
|
||||||
You can check that your code is properly formatted and adheres to coding style by running:
|
You can check that your code is properly formatted and adheres to coding style by running:
|
||||||
|
|
Loading…
Reference in New Issue