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
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
2
3
4
5
6
7
8
9
10