Go to Definition and Autocompletion support for Django Cotton template tags.
- Go to Definition: Command/Ctrl+click Cotton tags to navigate to their template files
- Smart Autocompletion:
- Triggers on
<c-
- Filters as you type
- Adds closing tags automatically
- Shows documentation from template comments
- Triggers on
Command/Ctrl+click any Cotton tag (e.g., <c-forms.input>
) to navigate to its template.
Type <c-
to see available components. Continue typing to filter (e.g., <c-form
).
{
"djangoCotton.templatePaths": [
"templates/cotton",
"other/templates"
]
}
Default: ["templates/cotton"]
- VS Code 1.85.0+
- Django project using Cotton templates
- Updated README to reflect new features
- Added component autocompletion
- Added template documentation support
- Initial release with Go to Definition support