scts

Scts

Custom VS Code snippet to quickly add Typescript script tags into Svelte files

scts

Custom VS Code snippet to quickly add Typescript script tags into Svelte files.

Configuration

⚠ You need to have the Svelte extension for VS Code already installed.

  1. Add the emmet snippets to Svelte files:
settings
  1. Add into your $HOME/.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}\AppData\Local\Programs\Microsoft VS Code\snippets.json

If you don't have a snippets.json file, just create it.

Result

scts

Top categories

Loading Svelte Themes