Visual Studio Code color theme in Visual Studio 2017 for JavaScript and TypeScript files

后端 未结 2 1060
傲寒
傲寒 2021-02-04 05:32

As the topic suggests I would like to import/set Visual Studio Code color theme in Visual Studio 2017 for JavaScript and TypeScript files. The files I therefore would like to se

2条回答
  •  独厮守ぢ
    2021-02-04 06:18

    Can you confirm that other TSLS features are working correctly on your installation? (formatting, completions, etc).

    There is a known issue with TextMate support in VS where sometimes there are missing colors. To make sure this isn’t the case here can you try running the following from a VS Developer cmd prompt to see if it resolves the issue: • devenv.exe /updateconfiguration • devenv.exe /setup

    What is your VS installation directory? Ex: C:\Program Files[ (x86)]\Microsoft Visual Studio 15.0\Common7\IDE

    Does the tmLanguage folder exist under the TypeScript installation path? Ex: C:\Program Files\Microsoft Visual Studio 15.0\Common\IDE\CommonExtensions\Microsoft\TypeScript\tmLanguage

    Do you have any custom grammar files (.tmLanguage, .tmTheme) located in your user profile? Ex: %userprofile%.vs\Extensions

    Can you verify this isn’t a TM language caching issue:

    • Close VS
    • Go to the TexMateCache location: %localappdata%\Microsoft\VisualStudio[15.0XXXXX]\TextMateCache
    • Delete all the .cache files in this directory
    • Reopen VS and try to repro

    Does this resolve the issue? Do you have the TypeScript TextMate registry key set correctly?

    • Close VS
    • Open regedit
    • Select HKLM
    • File > Load Hive …
    • Open %localappdata%\Microsoft\VisualStudio\15.0_xxx\privateregistry.bin (you can name the hive VS)
    • Now navigate to: Computer\HKEY_LOCAL_MACHINE\VS\Software\Microsoft\VisualStudio\15[XXXXX]_Config\TextMate\Repositories

提交回复
热议问题