一采郎、再打開settings.json文件
- 按下ctrl+shift+p千所,輸入settings.json。找到這個文件
- 配置下面代碼
"[markdown]": {
"editor.formatOnSave": true,
"editor.renderWhitespace": "all",
"editor.quickSuggestions": {
"other": true,
"comments": true,
"strings": true
},
"editor.acceptSuggestionOnEnter": "on"
}
二蒜埋、進(jìn)行markdown.json文件的配置
打開編輯器>文件>首選項>用戶代碼片段>下拉框中選中markdown語言淫痰,進(jìn)入markdown.json
如何配置,有英文說明整份,下面是中文說明和例子
"con": { //輸入con就會進(jìn)行提示
"prefix": "console", //面板修正
"body": [
"console.log($1);",// ""這個里面是回車后的主體黑界,$1是光標(biāo)第一次停留位置,$2是光標(biāo)第二次停留位置皂林,使用tab進(jìn)行切換朗鸠。當(dāng)然你也可以設(shè)置$3,$4。础倍。烛占。。沟启。忆家。。
"$2"
],
"description": "console.log" //描述提示
},
三德迹、個人的配置
- 配置了紅黃藍(lán)綠四種字體顏色標(biāo)簽生成
如ftb組合:<font color=#00a8ff>藍(lán)色</font>
- 配置字體大小標(biāo)簽生成
fts組合:<font size= 5>字體</font>
- 配置字體樣式標(biāo)簽生成
ftf組合:<font face= 楷體>字體樣式</font>
- 配置矩陣生成
jleft組合:
A=
- 配置行列式生成
hleft組合:
- 配置帶省略的矩陣生成
sleft組合:
A=
- 配置語言高亮生成
如c組合:
//c語言
-
配置上角標(biāo)芽卿、下角標(biāo)生成
上:sup
hhhhtm下:sub
H2O
{
"con": {
"prefix": "console",
"body": [
"console.log($1);",
"$2"
],
"description": "console.log"
},
"`js": {
"prefix": "```javascript",
"body": [
"```javascript $1```", "$2"
],
"description": "```javascript```"
},
"`css": {
"prefix": "```css",
"body": [
"```css $1```", "$2"
],
"description": "```css```"
},
"`h": {
"prefix": "```html",
"body": [
"```html $1```", "$2"
],
"description": "```html```"
},
"`c": {
"prefix": "```c",
"body": [
"```c $1```", "$2"
],
"description": "```c```"
},
"`cp": {
"prefix": "```cpp",
"body": [
"```cpp $1```", "$2"
],
"description": "```cpp```"
},
"sub": {
"prefix": "sub",
"body": [
"<sub>$1</sub>", "$2"
],
"description": "<sub>$1</sub>"
},
"sup": {
"prefix": "sup",
"body": [
"<sup>$1</sup>", "$2"
],
"description": "<sup></sup>"
},
"ft": {
"prefix": "font",
"body": [
"<font color= $1 size=$2 face='$3'>$4</font>", "$5"
],
"description": "<font></font>"
},
"ftc": {
"prefix": "ftc",
"body": [
"<font color= $1>$2</font>", "$3"
],
"description": "<font></font>"
},
"ftr": {
"prefix": "fontred",
"body": [
"<font color=#e84118>$1</font>", "$2"
],
"description": "<font color=red></font>"
},
"ftb": {
"prefix": "fontblue",
"body": [
"<font color=#00a8ff>$1</font>", "$2"
],
"description": "<font color=blue></font>"
},
"ftg": {
"prefix": "fontgreen",
"body": [
"<font color=#4cd137>$1</font>", "$2"
],
"description": "<font color=green></font>"
},
"fty": {
"prefix": "fontyellow",
"body": [
"<font color=#fbc531>$1</font>", "$2"
],
"description": "<font color=yellow></font>"
},
"fts": {
"prefix": "fts",
"body": [
"<font size= $1>$2</font>", "$3"
],
"description": "<font></font>"
},
"ftf": {
"prefix": "ftf",
"body": [
"<font face= $1>$2</font>", "$3"
],
"description": "<font></font>"
},
"hleft": {
"prefix": "hleft|",
"body": [
"$\\left| \\begin{array}{lcr}a & b & c \\\\\\ d & e & f \\end{array} \\right|$"
],
"description": "hleft"
},
"jleft": {
"prefix": "jleft{",
"body": [
"A= $\\left\\{ \\begin{matrix}a & b & c \\\\\\ d & e & f \\end{matrix} \\right\\\\}$"
],
"description": "jleft"
},
"slefs": {
"prefix": "sleft{",
"body": [
"A= $\\left\\{ \\begin{matrix}a & b & \\cdots & e \\\\\\ f & g & \\cdots & j \\\\\\ \\vdots & \\vdots & \\ddots & \\vdots \\\\\\ p & q & \\cdots & t \\end{matrix} \\right\\\\}$"
],
"description": "sleft"
},
"br": {
"prefix": "br",
"body": [
"<br>"
],
"description": "br"
},}