0

我实际上是在尝试获得一种在 VS-Code for VS2015 中使用的颜色主题。但主题是崇高文本/原子。我找不到 Visual Studio 2015 的颜色主题。

我在这里发现了这个问题 visual studio 2015 sublime theme

有什么方法可以将 vs-code 扩展安装或导入到 Visual Studio 2015 吗?

4

1 回答 1

0

目前没有办法在两种主题格式之间进行转换。Visual Studio 使用此处所示的专有主题样式,而 Visual Studio Code 使用此处所示的textmate 主题

视觉工作室格式:

  <Color Name="CSS String Value">
    <Background Type="CT_AUTOMATIC" Source="00000000" />
    <Foreground Type="CT_RAW" Source="FFD69D85" />
  </Color>
  <Color Name="HTML Attribute">
    <Background Type="CT_AUTOMATIC" Source="00000000" />
    <Foreground Type="CT_RAW" Source="FF9CDCFE" />
  </Color>

视觉工作室代码

    <dict>
        <key>name</key>
        <string>Tag Inline Source</string>
        <key>scope</key>
        <string>meta.tag.inline source, text.html.php.source</string>
        <key>settings</key>
        <dict>
            <key>fontStyle</key>
            <string>
            </string>
            <key>foreground</key>
            <string>#9AA83A</string>
        </dict>
    </dict>
    <dict>
        <key>name</key>
        <string>Tag Other</string>
        <key>scope</key>
        <string>meta.tag.other, entity.name.tag.style, entity.name.tag.script, meta.tag.block.script, source.js.embedded punctuation.definition.tag.html, source.css.embedded punctuation.definition.tag.html</string>
        <key>settings</key>
        <dict>
            <key>fontStyle</key>
            <string>
            </string>
            <key>foreground</key>
            <string>#9872A2</string>
        </dict>
    </dict>
    <dict>
        <key>name</key>
        <string>Tag Attribute</string>
        <key>scope</key>
        <string>entity.other.attribute-name, meta.tag punctuation.definition.string</string>
        <key>settings</key>
        <dict>
            <key>fontStyle</key>
            <string>
            </string>
            <key>foreground</key>
            <string>#D0B344</string>
        </dict>
    </dict>

如您所见,它们是非常不同的格式,不幸的是没有工具可以在它们之间进行转换。

于 2017-02-16T21:51:20.607 回答