Skip to content

Instantly share code, notes, and snippets.

@joseywoermann
Last active October 11, 2021 13:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joseywoermann/857cbff9f85aab79c1682ed7ac41879c to your computer and use it in GitHub Desktop.
Save joseywoermann/857cbff9f85aab79c1682ed7ac41879c to your computer and use it in GitHub Desktop.
VS Code code snippets for Svelte
{
"Create SvelteKit Route Component": {
"scope": "svelte",
"prefix": "sv",
"body": [
"<script lang=\"ts\">\n\n</script>\n\n\n<svelte:head>\n <title></title>\n</svelte:head>\n\n\n<body>\n $1\n</body>\n\n\n<style type=\"text/postcss\">\n\n</style>"
],
"description": "Create a SvelteKit route component"
},
"Create Tailwind style block": {
"scope": "svelte,css",
"prefix": "tw",
"body": [
"<style type=\"text/postcss\">\n\n</style>"
],
"description": "Create a Tailwind CSS style block"
},
"Create SvelteKit Code Component": {
"scope": "svelte",
"prefix": "svts",
"body": [
"<script lang=\"ts\">\n\n</script>"
],
"description": "Create a SvelteKit code component"
},
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment