Skip to content

Add .vue file snippets #10

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 6, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
138 changes: 138 additions & 0 deletions snippets/vue.code-snippets
Original file line number Diff line number Diff line change
@@ -0,0 +1,138 @@
{
"Vue SFC <script setup>, TS, SCSS": {
"prefix": "vbase",
"body": [
"<script setup lang='ts'>",
"",
"</script>"
,
"",
"<template>",
"\t<div>",
"\t\t${0}",
"\t</div>",
"</template>",
"",
"<style lang=\"scss\" scoped>",
"",
"</style>"
],
"description": "Base for Vue 3 File with <script setup>, TypeScript and SCSS"
},
"Vue SFC <script setup>, TS, SASS": {
"prefix": "vbase-sass",
"body": [
"<script setup lang='ts'>",
"",
"</script>"
,
"",
"<template>",
"\t<div>",
"\t\t${0}",
"\t</div>",
"</template>",
"",
"<style lang=\"sass\" scoped>",
"",
"</style>"
],
"description": "Base for Vue 3 File with <script setup>, TypeScript and SASS"
},
"Vue SFC <script setup>, TS, LESS": {
"prefix": "vbase-less",
"body": [
"<script setup lang='ts'>",
"",
"</script>"
,
"",
"<template>",
"\t<div>",
"\t\t${0}",
"\t</div>",
"</template>",
"",
"<style lang=\"less\" scoped>",
"",
"</style>"
],
"description": "Base for Vue 3 File with <script setup>, TypeScript and LESS"
},
"Vue SFC <script setup>, TS, PostCSS": {
"prefix": "vbase-pcss",
"body": [
"<script setup lang='ts'>",
"",
"</script>"
,
"",
"<template>",
"\t<div>",
"\t\t${0}",
"\t</div>",
"</template>",
"",
"<style lang=\"postcss\" scoped>",
"",
"</style>"
],
"description": "Base for Vue 3 File with <script setup>, TypeScript and PostCSS"
},
"Vue SFC <script setup>, TS, CSS": {
"prefix": "vbase-css",
"body": [
"<script setup lang='ts'>",
"",
"</script>"
,
"",
"<template>",
"\t<div>",
"\t\t${0}",
"\t</div>",
"</template>",
"",
"<style lang=\"css\" scoped>",
"",
"</style>"
],
"description": "Base for Vue 3 File with <script setup>, TypeScript and CSS"
},
"Vue SFC <script setup>, TS, Stylus": {
"prefix": "vbase-styl",
"body": [
"<script setup lang='ts'>",
"",
"</script>"
,
"",
"<template>",
"\t<div>",
"\t\t${0}",
"\t</div>",
"</template>",
"",
"<style lang=\"stylus\" scoped>",
"",
"</style>"
],
"description": "Base for Vue 3 File with <script setup>, TypeScript and Stylus"
},
"Vue SFC <script setup>, TS, No Style": {
"prefix": "vbase-ns",
"body": [
"<script setup lang='ts'>",
"",
"</script>"
,
"",
"<template>",
"\t<div>",
"\t\t${0}",
"\t</div>",
"</template>",
],
"description": "Base for Vue 3 File with <script setup>, TypeScript and no style"
},
}