Enjoy writing out SvelteJS runes using dot notation.
Currently the $state()
$props()
and $inspect()
runes are supported.
To write a quick props rune simply type props.<nameOfProp> followed by two spaces. You can chain as many props as you want together.
To create state runes, write state.<nameOfState> followed by two spaces. You can chain this together as many times as you want!
You probably get the idea by now, just type inspect.<nameOfVariable> followed by two spaces to generate an inspect rune with those variables inside of it!
There are no additional dependencies required to run this extension.
- Currently when you generate the snippet, it does not indent. If you format on save this is not an issue.
- When using the inspect rune shortcut, it sometimes imports inspect from utils causing a conflict.
Thanks for being an early adopter!
Initial release of Svelte Dot Runes
Enjoy!