From 458ba87bb5f0b35eaf2b556c2508ea95d29b2c05 Mon Sep 17 00:00:00 2001 From: Nikhil Thorat Date: Wed, 6 Sep 2017 21:58:08 -0400 Subject: [PATCH 1/3] vscode settings --- .vscode/settings.json | 1 + README.md | 3 +++ 2 files changed, 4 insertions(+) diff --git a/.vscode/settings.json b/.vscode/settings.json index f77c3efa48..413796dffe 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -13,6 +13,7 @@ "files.trimTrailingWhitespace": true, "editor.tabSize": 2, "editor.insertSpaces": true, + "editor.formatOnSave": true, "files.insertFinalNewline": true, "editor.detectIndentation": false, "editor.wrappingIndent": "none", diff --git a/README.md b/README.md index da6149f788..81c75b6d04 100644 --- a/README.md +++ b/README.md @@ -74,6 +74,9 @@ $ cd deeplearnjs $ npm run prep # Installs node modules and bower components. ``` +We recommend using [Visual Studio Code](https://code.visualstudio.com/) for +development. Make sure to install `clang-format` for IDE auto-formatting. + To interactively develop any of the demos (e.g. `demos/nn-art/`): ```bash From cdc19f12e2c3e1f0886650e0da28c599daf90ffd Mon Sep 17 00:00:00 2001 From: Nikhil Thorat Date: Wed, 6 Sep 2017 21:59:53 -0400 Subject: [PATCH 2/3] add the extension info to the readme --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 81c75b6d04..07302e750b 100644 --- a/README.md +++ b/README.md @@ -75,7 +75,8 @@ $ npm run prep # Installs node modules and bower components. ``` We recommend using [Visual Studio Code](https://code.visualstudio.com/) for -development. Make sure to install `clang-format` for IDE auto-formatting. +development. Make sure to install the `clang-format` command line tool as +well as the Clang-Format VSCode extension for auto-formatting. To interactively develop any of the demos (e.g. `demos/nn-art/`): From 409ff5ffebd97708ef195aa3d409fc131e8f910f Mon Sep 17 00:00:00 2001 From: Nikhil Thorat Date: Wed, 6 Sep 2017 22:02:10 -0400 Subject: [PATCH 3/3] link to vscode extension --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 07302e750b..bac071dc7e 100644 --- a/README.md +++ b/README.md @@ -76,7 +76,7 @@ $ npm run prep # Installs node modules and bower components. We recommend using [Visual Studio Code](https://code.visualstudio.com/) for development. Make sure to install the `clang-format` command line tool as -well as the Clang-Format VSCode extension for auto-formatting. +well as the [Clang-Format VSCode extension](https://marketplace.visualstudio.com/items?itemName=xaver.clang-format) for auto-formatting. To interactively develop any of the demos (e.g. `demos/nn-art/`):