Skip to content

Commit 3ae5cbc

Browse files
authored
Add format-on-save instructions (#46)
1 parent a48166a commit 3ae5cbc

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

docs/formatting.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,12 @@ nav_order: 4
1414
![1-format](https://user-images.githubusercontent.com/50580/89370237-7cc95400-d69d-11ea-8d6c-949fd099cf21.gif)
1515

1616
To configure the version of `buildifier` that will be downloaded, configure the
17-
settings under `bsv.buildifier.*`.
17+
settings under `bsv.buildifier.*`.
18+
19+
To format BUILD files on every save, add the following to your settings.json `> Preferences: Open Settings (JSON)`:
20+
21+
```json
22+
"[bazel]": {
23+
"editor.formatOnSave": true
24+
}
25+
```

0 commit comments

Comments
 (0)