- First, open the settings.json file again
- Second, configure the markdown.json file
- Three, personal configuration
First, open the settings.json file again
- Press ctrl+shift+p and enter settings.json. Find this file
- Configure the following code
"[markdown]": {
"editor.formatOnSave": true,
"editor.renderWhitespace": "all",
"editor.quickSuggestions": {
"other": true,
"comments": true,
"strings": true
},
"editor.acceptSuggestionOnEnter": "on"
}
Second, configure the markdown.json file
-
Open Editor>File>Preferences>User Code Snippet>Select the markdown language in the drop-down box and enter markdown.json
-
How to configure, there are English instructions, the following are Chinese instructions and examples
"con": {
//输入con就会进行提示
"prefix": "console", //面板修正
"body": [
"console.log($1);",// ""这个里面是回车后的主体,$1是光标第一次停留位置,$2是光标第二次停留位置,使用tab进行切换。当然你也可以设置$3,$4。。。。。。。
"$2"
],
"description": "console.log" //描述提示
},
Three, personal configuration
- Configured with four font color label generation of red, yellow, blue and green,
such as ftb combination: blue
- Configure font size label to generate
fts combination: font
- Configure the font style tag to generate
ftf combination: font style
- Configure matrix to generate
jleft combination:
A= {abcdef} \left\{ \begin{matrix}a & b & c \\ d & e & f \end{matrix} \right\}{ adbecf}
- Configure the determinant to generate
hleft combinations:
∣ abcdef ∣ \left| \begin{array}{lcr}a & b & c \\ d & e & f \end{array} \right|∣∣∣∣adbecf∣∣∣∣
- Configure the omitted matrix to generate
sleft combinations:
A = {ab… efg… j ⋮ ⋮ ⋱ ⋮ pq… t} \left\{ \begin{matrix}a & b & \cdots & e \\ f & g & \cdots & j \\ \vdots & \vdots & \ddots & \vdots \\ p & q & \cdots & t \end{matrix} \right\}⎩⎪⎪⎪⎨⎪⎪⎪⎧af⋮pbg⋮q⋯⋯⋱⋯ej⋮t⎭⎪⎪⎪⎬⎪⎪⎪⎫
- Configure language highlight generation
such as c combination:
//c语言
-
Configure superscript and subscript generation
Top: sup
hhhh tmBottom: sub
H 2 O
{
"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"
},}