Skip to content
/ scts Public

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

Notifications You must be signed in to change notification settings

r4rmas/scts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 

Repository files navigation

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

  1. 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

About

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

Topics

Resources

Stars

Watchers

Forks