أثناء إنشاء مقتطف المستخدم ، يجب أن تكون القاعدة على النحو التالي:
"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 هل يمكنك إرشادي لحل هذه المشكلة؟
بالتأكيد ، الخروج
التعليق الأكثر فائدة
بالتأكيد ، الخروج