u4250

vuePress-theme-reco u4250    2020 - 2022
u4250 u4250

Choose mode

  • dark
  • auto
  • light
主页
分类
  • C#
  • JAVA
  • webjs
  • nodejs
  • python
  • 杂七杂八
  • 数据库
  • other
  • vscode
  • mpvue
  • vue.js
标签
时间轴
GitHub
author-avatar

u4250

22

文章

19

标签

主页
分类
  • C#
  • JAVA
  • webjs
  • nodejs
  • python
  • 杂七杂八
  • 数据库
  • other
  • vscode
  • mpvue
  • vue.js
标签
时间轴
GitHub

vscode 使用

vuePress-theme-reco u4250    2020 - 2022

vscode 使用

u4250 2020-10-18 vscode命令

设置vscode快捷键 ctr+s ctr+k

# 打开Snippets(用户代码片段)

路径:文件》首选项》用户代码片段 当然你也可以选择Ctrl+Shift+P,输入Snippets进入 找到Markdown(其他语言类同) 进入编辑

{
		"Front-Matter": {
		"prefix": "fm",
		"body": [
			"---"
			"title: 【${1:title1}】${2:title2}"
			"date: ${3:date}"
			"categories: ${4:categories}"
			"tags: [${5:tags}]"
			"---"
			"$6"
		],
		"description": "Front-Matter"
	}
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15

prefix:定义要在文章用快捷输入的字符,相当于html快捷输入的! body:要快捷生成的代码,每一行都要用”” description:快捷输入时候的提示

但是不管用,需要配置setting.json文件

"[markdown]": {
    "editor.formatOnSave": true,
    "editor.renderWhitespace": "all",
    "editor.quickSuggestions": {
        "other": true,
        "comments": true,
        "strings": true
    },
    "editor.acceptSuggestionOnEnter": "on"
}
1
2
3
4
5
6
7
8
9
10

来自 CSDN
来自 大专栏

在 GitHub 上编辑此页
Last Updated: 2020/12/1 下午10:09:21