Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>HTMX ToolkitNew to Visual Studio Code? Get it now.
HTMX Toolkit

HTMX Toolkit

AToolZ

|
15 installs
| (0) | Free
Complete HTMX development toolkit: IntelliSense, hover docs, validation, diagnostics, and snippets for 20+ template languages
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

HTMX Toolkit

Complete HTMX development toolkit: IntelliSense, hover docs, validation, diagnostics, and snippets for 20+ template languages.

VS Marketplace Version Installs Rating License HTMX 2.x


Features

Attribute Completions

Smart completions for all 27+ hx-* attributes with documentation and correct insert formatting.

Attribute Completion Demo

Context-Aware Value Completions

Get value suggestions based on the attribute you're editing. Supports hx-swap strategies, hx-trigger events and modifiers, hx-target selectors, hx-ext extensions, and more.

Value Completion Demo

Hover Documentation

Hover over any hx-* attribute to see a rich tooltip with description, valid values, modifiers, examples, and a link to official HTMX docs.

Hover Documentation Demo

Diagnostics & Validation

Catch typos and invalid values before they reach the browser. Includes Levenshtein-based "did you mean?" suggestions and deprecated attribute warnings.

Diagnostics Demo

20+ Template Languages

Works everywhere HTMX is used:

Language Extensions
HTML .html
PHP / Blade .php, .blade.php
Django / Jinja2 .html (Django), .jinja, .jinja2, .j2
Go Templates / Templ .gohtml, .tmpl, .templ
JSX / TSX .jsx, .tsx
Astro .astro
Svelte .svelte
Vue .vue
ERB (Ruby) .erb
Twig .twig
Handlebars .hbs
EJS .ejs
Nunjucks .njk
Razor .cshtml
Pug .pug

Snippets

23 ready-to-use patterns:

Prefix Description
hx-get GET request with target
hx-post-form Form with POST
hx-infinite-scroll Infinite scroll pattern
hx-search Live search
hx-sse Server-Sent Events
hx-ws WebSocket connection
hx-lazy Lazy loading
hx-delete-confirm Delete with confirmation
hx-poll Polling pattern
hx-click-to-edit Click-to-edit
hx-boost-nav Boosted navigation
hx-modal Modal dialog
hx-file-upload File upload with progress
hx-dependent-dropdown Cascading dropdown
hx-oob-swap Out-of-band swap
hx-table-row Table row with inline editing
hx-progress Progress bar with polling
hx-tabs Tab navigation
hx-toast Toast notification via OOB
hx-form-validation Form with inline validation
hx-template Full HTML page boilerplate
hx-active-search Active search with debounce
hx-bulk-actions Bulk actions with checkboxes

Installation

VS Code Marketplace:

  1. Open VS Code
  2. Press Ctrl+Shift+X (or Cmd+Shift+X on macOS)
  3. Search for "HTMX Toolkit"
  4. Click Install

Command Line:

code --install-extension atoolz.htmx-vscode-toolkit

Configuration

Setting Default Description
htmxIntelliSense.enableCompletion true Enable attribute completions
htmxIntelliSense.enableHover true Enable hover documentation
htmxIntelliSense.enableValidation true Enable diagnostics/validation

Why This Extension?

HTMX has 47K+ GitHub stars and is one of the fastest-growing frontend libraries. Yet the VS Code tooling ecosystem is fragmented: 6+ extensions, none comprehensive, none supporting template languages properly.

HTMX Toolkit fills this gap with:

  • The most complete attribute and value completion available
  • Real validation with typo detection (not just syntax highlighting)
  • First-class support for server-side template languages (Go, Python, PHP, Ruby)
  • Clean, maintainable data layer that tracks HTMX releases

Contributing

Contributions welcome! Please see CONTRIBUTING.md for guidelines.

# Clone and install
git clone https://github.com/atoolz/htmx-vscode-toolkit.git
cd htmx-vscode-toolkit
npm install

# Build and test
npm run build
npm run test:e2e

# Debug in VS Code
# Press F5 to launch Extension Development Host

License

MIT


Built for the HTMX community

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft