scts Svelte Themes

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. Include emmet snippets to Svelte files:
settings
  1. Add an emmet extension path. I recommend ~/.vscode:

    bitmap
  2. 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.

Result

scts

Top categories

Loading Svelte Themes