创建用户代码段时,规则必须如下所示:
"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"
},
版本信息:
@jrieken您可以指导我解决此问题吗?
当然,结帐
最有用的评论
当然,结帐