From 8aa70c24777c150fc065459ada05b02d54b44bfb Mon Sep 17 00:00:00 2001 From: Victor Berchet Date: Thu, 7 Jun 2018 09:42:29 -0700 Subject: [PATCH] docs: adds information about the VSCode clang-format extension (#24351) PR Close #24351 --- docs/DEVELOPER.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/docs/DEVELOPER.md b/docs/DEVELOPER.md index 395c620e9f..ba0b2e24c2 100644 --- a/docs/DEVELOPER.md +++ b/docs/DEVELOPER.md @@ -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: