【问题标题】:Multi scope selection for textMateRulestextMateRules 的多范围选择
【发布时间】:2019-07-17 08:47:28
【问题描述】:

尝试从 webstorm 迁移到 vscode。

我试图弄清楚如何更准确地定位 textMateRules。 特别要求多个范围匹配。

我在某处读到你是这样做的,但它被默认的entity.name.function 覆盖。

"scope": [
          "entity.name.function meta.method.declaration"
        ],

任何帮助appriciated。

【问题讨论】:

    标签: visual-studio-code vscode-settings


    【解决方案1】:

    我没有意识到排序很重要。

    "scope": [
              "meta.method.declaration entity.name.function"
            ],
    

    成功了。

    【讨论】:

      【解决方案2】:

      在我的多个范围的 VS 代码 (1.63.2) 中,我使用以下代码:

      "scope": [
          "entity.name.function",
          "meta.method.declaration"
      ],
      

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2021-05-22
        • 2019-05-17
        • 1970-01-01
        • 2018-03-08
        • 1970-01-01
        • 2018-01-14
        • 1970-01-01
        • 2019-02-12
        相关资源
        最近更新 更多