首页 > 其他分享 >vscodeSnippetSetting

vscodeSnippetSetting

时间:2022-11-07 20:45:26浏览次数:36  
标签:quickSuggestions 代码段 unicodeHighlight editor vscodeSnippetSetting false

设定vscode用户代码段

这本来挺简单的,左下角设置-用户代码段配置在选项中可以选择类型专属或者全局代码段.

今天遇到的问题是配置Markdown代码段之后,没有效果,但测试其他类型没有问题.

经过查询,需要在settings.json当中设定editor.quickSuggestions字段:

"[markdown]": {
      "editor.unicodeHighlight.ambiguousCharacters": false,
      "editor.unicodeHighlight.invisibleCharacters": false,
      "editor.wordWrap": "on",
      "editor.quickSuggestions": {
        "comments": "on",
        "strings": "on",
        "other": "on"
      }
    }

开启即可.

标签:quickSuggestions,代码段,unicodeHighlight,editor,vscodeSnippetSetting,false
From: https://www.cnblogs.com/linxiaoshu/p/16867379.html

相关文章