Editor support for bootstrap-ng, the Angular components for Bootstrap 6.
Commands, settings, diagnostics, hovers, and the import quick fix follow the VS Code display language for English and Japanese. Snippet templates and API descriptions from the bootstrap-ng docs stay in English.
- Warnings in the Problems panel when
package.jsondepends onbootstraporbootstrap-ng6.0.0-alpha.1, with a quick fix that updates the version to6.0.0-alpha.2. - Completions for
bs*directives, their inputs and outputs, and documented values such asthemeandbsButton="outline", in HTML templates and inline Angulartemplatestrings. - Completions and hovers for Bootstrap 6 CSS classes in
classattributes, including responsive variants such assm:d-flexandmd:col-6. - Completions for
bootstrap-ngimports. - Hovers with a short description and a link to the docs.
- Snippets for common components and form controls (
bs-alert,bs-dialog,bs-form-field, and others). - Warnings when a static attribute value is outside the documented set, with a quick fix for close matches such as
theme="primray"totheme="primary". - Information hints for Bootstrap 5
data-bs-toggleanddata-bs-dismissattributes, naming the bootstrap-ng directive that replaces them. Tooltip, popover, and dismiss attributes have a quick fix that swaps inbsTooltip,bsPopover,bsDialogClose,bsDrawerClose, orbsToastClose. - A quick fix that adds a directive used in a template to the
bootstrap-ngimport and the componentimportsarray. - Warnings in the Problems panel when a standalone component template uses a
bs*directive that is not imported, with the import quick fix attached. Add"source.fixAll.bootstrap-ng": "explicit"toeditor.codeActionsOnSaveto add missing imports to inline templates on save. - Bootstrap-ng: Open Documentation opens the docs for the symbol under the cursor, or a list of components.
bootstrap-ng.validateAttributeValueswarns about unknown static values. Default:true.bootstrap-ng.hintBootstrap5DataApihints about Bootstrap 5 data attributes. Default:true.bootstrap-ng.validateImportswarns when a directive is used in a standalone component template but not imported. Default:true.