














json
{
// 新建markdown文档
"vitepress 新建markdown文档": {
"scope": "markdown",
"prefix": "!newmd",
"body": ["---", "title: $1", "description: $2", "tags: ", " - $3", "---", "", "# $1", "", "$4"],
"description": "vitepress 新建markdown文档"
},
// mrkdown中快速插入Vue3模版
"vitepress markdown中插入vue3模版": {
"scope": "markdown",
"prefix": "!vue3",
"body": ["<template>", "\t<div>$1</div>", "</template>\n", "<script setup lang='ts'>", "$2", "</script>\n", "<style lang='scss' scoped>\n", "</style>", ""],
"description": "vitepress markdown中插入vue3模版"
},
// 折叠容器
"vitepress 折叠容器 details": {
"scope": "markdown",
"prefix": "!details",
"body": ["::: details $1", "$2", ":::"],
"description": "vitepress 折叠容器 details"
},
// 代码块组
"vitepress 自定义代码块组 code-group": {
"scope": "markdown",
"prefix": "!group",
"body": ["::: code-group", "", "```$1 [$2]", "$3", "```", "", ":::"],
"description": "vitepress 自定义代码块组 code-group"
},
// 代码引用 include
"vitepress 代码块,内部引用其他文件内的代码 @include": {
"scope": "markdown",
"prefix": "!include",
"body": ["```$1 [.vitepress/$2.$1]", "<!--@include: @/.vitepress/$2.$1#$3-->", "```"],
"description": "vitepress代码块,内部引用其他文件内的代码 @include"
},
// 代码引用 <<<
"vitepress 代码块,内部引用其他文件内的代码 <<<": {
"scope": "markdown",
"prefix": "!<<<",
"body": ["<<< @$1#$2"],
"description": "vitepress代码块,内部引用其他文件内的代码 <<<"
},
// github风格提示
"vitepress github风格提示 note": {
"scope": "markdown",
"prefix": "!note",
"body": ["> [!NOTE] $1", "> $2"],
"description": "github 风格提示 note"
},
"vitepress github风格提示 tip": {
"scope": "markdown",
"prefix": "!tip",
"body": ["> [!TIP] $1", "> $2"],
"description": "github风格提示 tip"
},
"vitepress github风格提示 important": {
"scope": "markdown",
"prefix": "!important",
"body": ["> [!IMPORTANT] $1", "> $2"],
"description": "github风格提示 important"
},
"vitepress github风格提示 warning": {
"scope": "markdown",
"prefix": "!warning",
"body": ["> [!WARNING] $1", "> $2"],
"description": "github风格提示 warning"
},
"vitepress github风格提示 caution": {
"scope": "markdown",
"prefix": "!caution",
"body": ["> [!CAUTION] $1", "> $2"],
"description": "github风格提示 caution"
},
// 常用代码块
"vitepress 常用代码块 markdown": {
"scope": "markdown",
"prefix": "!md",
"body": ["```md", "$1", "```"],
"description": "vitepress 常用代码块 markdown"
},
"vitepress 常用代码块 shell": {
"scope": "markdown",
"prefix": "!sh",
"body": ["```sh", "$1", "```"],
"description": "vitepress 常用代码块 shell"
},
"vitepress 常用代码块 vue": {
"scope": "markdown",
"prefix": "!vue",
"body": ["```vue", "$1", "```"],
"description": "vitepress 常用代码块 vue"
},
"vitepress 常用代码块 js": {
"scope": "markdown",
"prefix": "!js",
"body": ["```js", "$1", "```"],
"description": "vitepress 常用代码块 js"
},
"vitepress 常用代码块 ts": {
"scope": "markdown",
"prefix": "!ts",
"body": ["```ts", "$1", "```"],
"description": "vitepress 常用代码块 ts"
},
"vitepress 常用代码块 html": {
"scope": "markdown",
"prefix": "!html",
"body": ["```html", "$1", "```"],
"description": "vitepress 常用代码块 html"
},
"vitepress 常用代码块 css": {
"scope": "markdown",
"prefix": "!css",
"body": ["```css", "$1", "```"],
"description": "vitepress 常用代码块 css"
},
"vitepress 常用代码块 scss": {
"scope": "markdown",
"prefix": "!scss",
"body": ["```scss", "$1", "```"],
"description": "vitepress 常用代码块 scss"
}
}json
{
"vue3 基础模版": {
"scope": "vue",
"prefix": "!vue3",
"body": ["<template>", "\t<div>$1</div>", "</template>\n", "<script setup lang='ts'>", "$2", "</script>\n", "<style lang='scss' scoped>\n", "</style>", ""],
"description": "vue3 基础模版"
}
}此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。