Link Search Menu Expand Document

Formatting

BUILD file formatting is performed by the buildifier tool:

1-format

To configure the version of buildifier that will be downloaded, configure the settings under bsv.buildifier.*.

To format BUILD files on every save, add the following to your settings.json > Preferences: Open Settings (JSON):

"[bazel]": {
    "editor.formatOnSave": true
}

Copyright © 2020 Stack.Build.