docs: adds information about the VSCode clang-format extension (#24351)

PR Close #24351
This commit is contained in:
Victor Berchet 2018-06-07 09:42:29 -07:00 committed by Miško Hevery
parent 49c5234c68
commit 8aa70c2477
1 changed files with 10 additions and 0 deletions

View File

@ -123,6 +123,16 @@ You can automatically format your code by running:
$ 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
You can check that your code is properly formatted and adheres to coding style by running: