Vscode: [功能请求]在用户摘要中添加多行描述支持

创建于 2019-01-04  ·  3评论  ·  资料来源: microsoft/vscode

创建用户代码段时,规则必须如下所示:

"example": {
    "prefix": "example",
    "body": [
        "line 1",
        "line 2"
    ],
    "description": "A single line description"
}

如果要显示很多描述,我必须写一个巨大的字符串,其中包含许多转义字符,如下所示:

"toctree": {
    "prefix": ".. toctree::",
    "body": [
        ".. toctree::",
        "$0"
    ],
    "description": "A toctree item, have these options:\n\t:maxdepth: para\n\t:caption: para
\n\t:numbered:\n\t:titlesonly:\n\t:glob:\n\t:reversed:\n\t:hidden:\n\t:includehidden:",
    "scope": "text.restructuredtext"
},

最好将description选项接收一个列表值,例如body

"toctree": {
    "prefix": ".. toctree::",
    "body": [
        ".. toctree::",
        "$0"
    ],
    "description": [
        "A toctree item, have these options:",
        ":maxdepth: para",
        ":caption: para",
        ":numbered:",
        ":titlesonly:",
        ":glob:",
        ":reversed:",
        ":hidden:",
        ":includehidden:"
    ],
    "scope": "text.restructuredtext"
},
feature-request good first issue help wanted snippets

所有3条评论

版本信息:

  • 代码版本:1.30.1(用户设置)
  • 提交:dea8705087adb1b5e5ae1d9123278e178656186a
  • 日期:2018-12-18T18:12:07.165Z
  • 电子:2.0.12
  • 铬:61.0.3163.100
  • Node.js:8.9.3
  • V8:6.1.534.41
  • 作业系统:Windows_NT x64 10.0.17763

@jrieken您可以指导我解决此问题吗?

此页面是否有帮助?
0 / 5 - 0 等级