Skip to content

Quick Start ​

Get started with Bootstrap IntelliSense in minutes!

Installation ​

Via Marketplace ​

The easiest way to install is through the Visual Studio Code Marketplace:

  1. Open Visual Studio Code
  2. Press Ctrl+Shift+X (or Cmd+Shift+X on macOS) to open the Extensions view
  3. Search for "Bootstrap IntelliSense"
  4. Click "Install"

Via Command Line ​

You can also install the extension via the command line:

bash
code --install-extension hossaini.bootstrap-intellisense

Via GitHub Releases ​

Download and install the latest release directly from GitHub:

  1. Go to the GitHub Releases page
  2. Download the latest .vsix file
  3. Open Visual Studio Code
  4. Press Ctrl+Shift+P (or Cmd+Shift+P on macOS)
  5. Type "Install from VSIX" and select Extensions: Install from VSIX...
  6. Select the downloaded .vsix file

Tip

This method is useful if you want to install a specific version or if you're working in an offline environment.

Prerequisites ​

Important

For the extension to activate, Bootstrap must be installed in your workspace.

Install Bootstrap ​

If you haven't installed Bootstrap yet, you can install it with one of these package managers:

bash
npm install bootstrap
bash
pnpm add bootstrap
bash
yarn add bootstrap
bash
bun add bootstrap

Activation ​

The extension will be automatically activated when:

  • You have installed the extension
  • Bootstrap is present in your workspace
  • You open a supported file (HTML, JSX, Vue, etc.)

You should see a notification that Bootstrap IntelliSense is active.

Activation Status ​

You can check if the extension is currently active by looking at the status bar icon at the bottom of VS Code:

  • Active: The Bootstrap IntelliSense icon is displayed normally in the status bar
  • Inactive: The Bootstrap IntelliSense icon appears with a strikethrough

Getting Started ​

1. Open an HTML File ​

Create a new HTML file or open an existing one.

2. Start Typing ​

Start typing a Bootstrap class name:

html
<div class="container">
  <div class="row">
    <div class="col-md-6">
      <!-- Type here: btn- -->
    </div>
  </div>
</div>

3. Use Autocomplete ​

As you start typing, suggestions will appear automatically. Color-related classes show a color swatch right next to the suggestion:

Autocomplete Feature

Tip

If suggestions don't appear automatically, press Ctrl+Space (or Cmd+Space on macOS) to manually trigger autocomplete.

4. Use Hover Preview ​

Hover your mouse over a Bootstrap class to see the CSS properties. For color utility classes, a color swatch and its hex code are shown above the rule (transparent colors use 8-digit #RRGGBBAA):

CSS Hover Preview

5. Inline Color Swatches ​

While you edit, color utilities such as bg-primary or text-black-50 show a small color box directly to the left of the class name. Toggle this in the Status Bar menu or with enableColorPreview in settings (on by default).

6. Sort Bootstrap Classes ​

Keep class lists tidy in Bootstrap’s canonical order (Layout → Spacing → Components → Utilities):

  • Command Palette → Bootstrap IntelliSense: Sort Classes in Current File
  • Or enable sortOnSave / Enable/Disable sort on save in the Status Bar menu to sort automatically when you save.

Tip

Autocomplete, inline swatches, hover, and sorting work not only in class/className, but also in framework bindings (:class, v-bind:class, [ngClass], Svelte class:) and helpers like cn(), clsx() or cva() — including across multiple lines.

Made with ❤