Version: Next

Buildifier

The Buildifier component manages formatting and linting of BUILD files.

Configuration

Buildifier is downloaded automatically; no specific configuration is required.

Format-on-save for BUILD files is highly recommended. Put the following in your settings.json:

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

Additional configuration such as the version of buildifier to download are available under the Settings tree item:

image