在代码段“字符串”中创建停止符

问题描述 投票:0回答:1

我得到了此摘要,并尝试在选项内创建下一个停靠点。因此,首先我选择类型,假设我选择了v-if="NEXT-SHOULD-BE-HERE"。我该怎么办?

"Select template": {
    "prefix": ["templatetype"],
    "body": [
        "<template ${1|#:,v-if=\"\",v-for=\"\"|}>",
        "  ${2}",
        "</template>"
    ],
    "description": "Create a template and select type"
}
visual-studio-code code-snippets vscode-snippets
1个回答
0
投票

我认为不可能在选择项内放置制表符。 grammar显示text中仅choice可用:

choice ::= '${' int '|' text (',' text)* '|}'

此问题似乎也与您的要求有关,并且已经关闭:

https://github.com/Microsoft/vscode/issues/35779

© www.soinside.com 2019 - 2024. All rights reserved.