【问题标题】:Creating a stop in snippet "string"在片段“字符串”中创建一个停止
【发布时间】:2020-03-04 08:12:21
【问题描述】:

我得到了这个 sn-p 并试图在选项中创建下一站。所以首先我选择类型,假设我选择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】:

    我认为不可能在选择项中放置制表位。 grammar 仅显示 textchoice 中可用:

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

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

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2013-08-27
      • 2014-02-12
      • 1970-01-01
      • 1970-01-01
      • 2023-03-31
      • 2013-04-02
      • 1970-01-01
      相关资源
      最近更新 更多