ユーザースニペットを作成するときのルールは、次のようにする必要があります。
"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この問題の解決について
確かに、チェックアウト
最も参考になるコメント
確かに、チェックアウト