Skip to content

Configuration

Configure HTMX Django IntelliSense in VS Code settings at the user, workspace, or language-specific scope.

Settings JSON

{
  "htmxDjango.enableCompletion": true,
  "htmxDjango.enableHover": true,
  "htmxDjango.enableValidation": true,
  "htmxDjango.version": "compatible"
}

See the complete settings reference for defaults and behavior.

Prefer HTMX 2

Use this during a stable-HTMX-2 codebase migration:

{
  "htmxDjango.version": "2"
}

HTMX 4-only names remain recognizable but appear as hints in diagnostics. Completion lists HTMX 2 entries.

Prefer HTMX 4

{
  "htmxDjango.version": "4"
}

This enables HTMX 4 completion entries and marks HTMX 2-only syntax as hints. Use compatible when the codebase intentionally uses both major-version catalogs.

Disable a feature

Set one of the boolean settings to false. Disabling validation also clears the extension's diagnostics for open documents after the configuration change.