Visual Studio Code extension that provides autocomplete for the <Link>
's href
attribute value based on the src/routes
directory structure.
- Automatically provides autocomplete when placing the attribute quotes (
"
or'
) or a url slash (/
). - Caches suggestions and reacts to directory changes.
- Detects the attribute's value borders and replaces it with the chosen suggestion regardless of current cursor position.
- Supports all kinds of route parameters.
This extension contributes the following settings:
Cache Enabled
: Enable/disable suggestions cache. Cache is purged on changes to folders in thesrc/routes
directory.Attributes
: A list of JSX attributes to provide autocomplete in. By default only contains thehref
attribute.
Pull requests and stars are always welcome. ❤
For bugs and feature requests, please create an issue.