vscod 配置 morkdown 快捷键

vscod 配置 morkdown 快捷键

  • ✅1、首先在根目录添加.vscode 文件夹

    • ♻️1.1 新建一个 settings.json 文件
    {
      "[markdown]": {
        "editor.formatOnSave": true,
        "editor.renderWhitespace": "all",
        "editor.quickSuggestions": {
          "other": true,
          "comments": true,
          "strings": true
        },
        "editor.acceptSuggestionOnEnter": "on"
      }
    }
    
    • ♻️1.2 新建一个 markdown.code-snippets 文件
    {
      // 语法参考: https://code.visualstudio.com/docs/editor/userdefinedsnippets
      "绿色字体": {
        "prefix": "f-g",
        "body": ["<font color=green>${TM_SELECTED_TEXT:0}</font>"]
      },
      "红色字体": {
        "prefix": "f-r",
        "body": ["<font color=red>$0</font>"]
      },
      "黄色字体": {
        "prefix": "f-y",
        "body": ["<font color=yellow>$0</font>"]
      },
      "蓝色字体": {
        "prefix": "f-b",
        "body": ["<font color=blue>$0</font>"]
      },
      "高亮提示": {
        "prefix": "hl",
        "body": [
          "<span style=\"background-color:${1|#2e74ff1a ,#00a6691a ,#ff8d191a|} ;font-size:14px; color:${2|#2e74ff,#00a669,#ff8d19|}; padding:6px;border-radius:5px;\">${3:文本}</span>"
        ],
        "description": "高亮提示"
      },
      "横线": {
        "prefix": "ll",
        "body": ["<hr/>"]
      },
      "块": {
        "prefix": "bb",
        "body": ["> $0"]
      },
      "js代码块": {
        "prefix": "js",
        "body": ["```js", " $0", "```"]
      },
      "json代码块": {
        "prefix": "json",
        "body": ["```json", " $0", "```"]
      },
      "java代码块": {
        "prefix": "java",
        "body": ["```java", " $0", "```"]
      },
      "python代码块": {
        "prefix": "py",
        "body": ["```python", " $0", "```"]
      },
      "center": {
        "prefix": "center",
        "body": ["<center>$0</center>"]
      },
      "标题": {
        "prefix": "main",
        "body": ["## <center>$0</center>"]
      },
      "一级列表": {
        "prefix": "l1",
        "body": ["- 1.$0", "- 2.", "- 3."],
        "description": "一级列表"
      },
      "二级列表": {
        "prefix": "l2",
        "body": [
          "- 1、$0",
          "   - 1.1",
          "   - 1.2",
          "   - 1.3",
          "- 2、",
          "   - 2.1",
          "   - 2.2",
          "   - 2.3",
          "- 3、",
          "   - 3.1",
          "   - 3.2",
          "   - 3.3"
        ],
        "description": "二级列表"
      },
      "三级列表": {
        "prefix": "l3",
        "body": [
          "- 1、$0",
          "   - 1.1",
          "       - 1.1.1",
          "       - 1.1.2",
          "   - 1.2",
          "       - 1.2.1",
          "       - 1.2.2",
          "   - 1.3",
          "       - 1.3.1",
          "       - 1.3.2",
          "- 2、",
          "   - 2.1",
          "       - 2.1.1",
          "       - 2.1.2",
          "   - 2.2",
          "       - 2.2.1",
          "       - 2.2.2",
          "   - 2.3",
          "       - 2.3.1",
          "       - 2.3.2",
          "- 3、",
          "   - 3.1",
          "       - 3.1.1",
          "       - 3.1.2",
          "   - 3.2",
          "       - 3.2.1",
          "       - 3.2.2",
          "   - 3.3",
          "       - 3.3.1",
          "       - 3.3.2"
        ],
        "description": "三级列表"
      },
      "四级列表": {
        "prefix": "l4",
        "body": [
          "- 1、$0",
          "   - 1.1",
          "       - 1.1.1",
          "           - 1.1.1.1",
          "           - 1.1.1.2",
          "       - 1.1.2",
          "           - 1.1.2.1",
          "           - 1.1.2.2",
          "   - 1.2",
          "       - 1.2.1",
          "           - 1.2.1.1",
          "           - 1.2.1.2",
          "       - 1.2.2",
          "           - 1.2.2.1",
          "           - 1.2.2.2",
          "   - 1.3",
          "       - 1.3.1",
          "           - 1.3.1.1",
          "           - 1.3.1.2",
          "       - 1.3.2",
          "           - 1.3.2.1",
          "           - 1.3.2.2",
          "- 2、",
          "   - 2.1",
          "       - 2.1.1",
          "           - 2.1.1.1",
          "           - 2.1.1.2",
          "       - 2.1.2",
          "           - 2.1.2.1",
          "           - 2.1.2.2",
          "   - 2.2",
          "       - 2.2.1",
          "           - 2.2.1.1",
          "           - 2.2.1.2",
          "       - 2.2.2",
          "           - 2.2.2.1",
          "           - 2.2.2.2",
          "   - 2.3",
          "       - 2.3.1",
          "           - 2.3.1.1",
          "           - 2.3.1.2",
          "       - 2.3.2",
          "           - 2.3.2.1",
          "           - 2.3.2.2",
          "- 3、",
          "   - 3.1",
          "       - 3.1.1",
          "           - 3.1.1.1",
          "           - 3.1.1.2",
          "       - 3.1.2",
          "           - 3.1.2.1",
          "           - 3.1.2.2",
          "   - 3.2",
          "       - 3.2.1",
          "           - 3.2.1.1",
          "           - 3.2.1.2",
          "       - 3.2.2",
          "           - 3.2.2.1",
          "           - 3.2.2.2",
          "   - 3.3",
          "       - 3.3.1",
          "           - 3.3.1.1",
          "           - 3.3.1.2"
        ]
      }
    }
    
    • ♻️1.3 可以借助第三档插件 Markdown Preview Enhanced 通过右键来预览效果

    我设置的快捷键说明文档在这里:
    https://www.cnblogs.com/gjzsa/p/17685350.html

    需要更多格式可以留言说明!!!

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

光头程序员

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值