summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCraig Hesling <hesling@chromium.org>2020-03-12 20:53:40 +0000
committerCommit Bot <commit-bot@chromium.org>2020-03-12 22:33:45 +0000
commit4d5a5e5ee9f2a33f1ee2ca8dbe1bf9b17e7f4b78 (patch)
tree92bdb4b648915c449e966edc375b62f9c50bd522
parentc2c2c083fef813e3e3c70f8c13a1418717ba682d (diff)
downloadchrome-ec-4d5a5e5ee9f2a33f1ee2ca8dbe1bf9b17e7f4b78.tar.gz
docs/ide-support.md: Add .vscode/setting.json tip
BRANCH=none BUG=none TEST=viewed in gitiles Signed-off-by: Craig Hesling <hesling@chromium.org> Change-Id: I25810b8a7aa2b55200ef07f2eb4a45c1d03c9160 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2101591 Reviewed-by: Jett Rink <jettrink@chromium.org>
-rw-r--r--docs/ide-support.md20
1 files changed, 20 insertions, 0 deletions
diff --git a/docs/ide-support.md b/docs/ide-support.md
index 1ab807a3d5..1407471f8a 100644
--- a/docs/ide-support.md
+++ b/docs/ide-support.md
@@ -44,3 +44,23 @@ includes selectable sub-configurations for every board/image pair.
You will only see this option when a C/C++ file is open. Additionally, you
can select a configuration by pressing `Ctrl-Shift-P` and selecting the
`C/C++ Select a Configuration...` option.
+5. Add the EC specific file associations and style settings.
+ Modify `.vscode/settings.json` to have the following elements:
+ ```json
+ {
+ "editor.rulers": [80],
+ "[c]": {
+ "editor.insertSpaces": false,
+ "editor.tabSize": 8
+ },
+ "files.associations": {
+ "Makefile.*": "makefile",
+ "*.inc": "c",
+ "*.wrap": "c",
+ "*.tasklist": "c",
+ "*.irqlist": "c",
+ "*.mocklist": "c",
+ "*.testlist": "c"
+ }
+ }
+ ```