VsCodeカスタムマークダウンフラグメントの生成、マトリックス、フォントの色など。

まず、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"
}

次に、markdown.jsonファイルを構成します

  • [エディター]> [ファイル]> [設定]> [ユーザーコードスニペット]を開き、ドロップダウンボックスでマークダウン言語を選択して、markdown.jsonと入力します。

  • 設定方法、英語の説明があります、以下は中国の説明と例です


"con": {
    
     //输入con就会进行提示
    "prefix": "console", //面板修正
    "body": [
        "console.log($1);",// ""这个里面是回车后的主体,$1是光标第一次停留位置,$2是光标第二次停留位置,使用tab进行切换。当然你也可以设置$3,$4。。。。。。。
        "$2"
    ],
    "description": "console.log" //描述提示
},

3つの個人的な構成


  • ftbの組み合わせなど、赤、黄、青、緑の4つのフォントカラーラベル生成で構成されています:


  • ftsの組み合わせを生成するようにフォントサイズラベルを構成しますfont


  • ftfの組み合わせを生成するようにフォントスタイルタグを構成しますフォントスタイル


  • jleftの組み合わせを生成するようにマトリックスを構成します。A
    = {abcdef} \ left \ {\ begin {matrix} a&b&c \\ d&e&f \ end {matrix} \ right \}{{ ADbEcF}


  • hleftの組み合わせを生成するように決定要因を構成します。∣abcdef∣
    \ left | \ begin {array} {lcr} a&b&c \\ d&e&f \ end {array} \ right ||ADbEcF|

  • 省略されたマトリックスを構成して、
    sleftの組み合わせを生成します
    。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 \}AfPbgQejトン


  • cの組み合わせなどの言語ハイライト生成を構成します
  //c语言

  • 上スクリプトと下スクリプトの生成を構成する上
    :sup
    hhhh tm

    下:サブ
    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"
  },}

おすすめ

転載: blog.csdn.net/qq_45549336/article/details/109250332