vscode中配置markdown的代码片段不生效

vscode 中设置了markdown的一个more的代码段,但在 .md 文件中并没有生效,解决方式:在 setting.json 中添加如下信息:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
"[markdown]": {
        "editor.formatOnSave": true,
        "editor.renderWhitespace": "all",
        "editor.quickSuggestions": {
            "other": true,
            "comments": true,
            "strings": true
        },
        "editor.acceptSuggestionOnEnter": "on"
    }

more 的代码段:

1
2
3
4
5
6
7
"read more": {
		"prefix": "more",
		"body": [
			"<!--more-->\n\n$0"
		],
		"description": "read more"
	}

参考链接: https://blog.csdn.net/serryuer/article/details/89393760