gpt4 book ai didi

visual-studio - 向 Visual Studio 2015 更新 1 添加新的 textmate 语法

转载 作者:行者123 更新时间:2023-12-04 07:41:14 27 4
gpt4 key购买 nike

在 Visual Studio 2015 update 1 release blog post (https://blogs.msdn.microsoft.com/visualstudio/2015/11/30/visual-studio-update-1-rtm/) 中明确提到了添加 textmate 包(或语法)的能力:

Editor support for new languages. The Visual Studio editor now provides built-in syntax highlighting and basic IntelliSense support for languages including Go, Java, Perl, R, Ruby, and Swift. We support the TextMate bundle model for language grammars and snippets, allowing you to extend this with support for other languages.



我想为我自己的语言创建一个新的 textmate 语法,但我找不到任何文档,如何在 vs2015 更新 1 中执行此操作。

我找到的最佳来源是这个 reddit 对话: https://www.reddit.com/r/programming/comments/3uvwn3/visual_studio_2015_update_1/

It looks like it's implemented as an extension, "Visual Studio Extension for Textmate Grammars." If you search for *.tmbundle in your visual studio\Common7\IDE\Extensions directory you will find the location of the tmbundles. I just made a new folder for Julia and copied the Julia tmbundle to it. Seems to work.



这是支持的方式吗?为什么没有任何文档、Visual Studio 菜单等?

最佳答案

您可以按照上面的方式执行此操作,或者如果您希望它位于您的用户配置文件目录中而不是整个操作系统安装中,您可以在此处添加捆绑包:

%USERPROFILE%\.vs\Extensions\

在大多数机器上,该路径扩展为:
C:\User\<yourusername>\.vs\Extensions\

关于visual-studio - 向 Visual Studio 2015 更新 1 添加新的 textmate 语法,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35492144/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com