Custom VS Code snippet to quickly add Typescript script tags into Svelte files.
⚠ You need to have the Svelte extension for VS Code already installed.
- Include emmet snippets to Svelte files:
- Add an emmet extension path. I recommend ~/.vscode:
- Add into the ~/.vscode/snippets.json file the following:
{
"html": {
"snippets": {
"scts": "<script lang=\"ts\">\n\t${0}\n</script>"
}
}
}
The Windows address would be: C:\Users\{Username}\.vscode\snippets.json
If you don't have a snippets.json file, just create it.