| Version | Prefix |
|---|---|
| bootstrap 4.x | bs4- |
| bootstrap 5.x | bs5- |
Example
bootstrap 5 button
-# bs5-button
%button.btn.btn-primary{type: 'button'}
My ButtonEnable/disable CSS class completion in the settings.
{
"hamlBootstrap.enableCssClassCompletion": true
}The current bootstrap version is determined by:
- The version of the
bootstrappackage in thenode_modulesfolder. - The version of the
bootstrapgem in theGemfile.lockfile. - Latest version of the
bootstrappackage on CDN.
When the bootstrap-icons package is detected
in your project, the bi-* icon classes are added to class completion alongside
the Bootstrap classes.
Detection follows the same order as above (node_modules, then Gemfile.lock);
if the package isn't found, no icon classes are suggested. Toggle it with:
{
"hamlBootstrap.enableBootstrapIconsCompletion": true
}