向 visual studio 2015 更新 1 添加新的 textmate 语法
adding a new textmate grammar to visual studio 2015 update 1
在 visual studio 2015 update 1 发布博客 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\
Mads Kristensen 现在似乎有一个扩展,它为 Visual Studio 提供了大量的 TextMate 语法。看起来添加其他语言也很容易...您可以查看存储库并确切了解添加其他语法所需的内容。
http://vsixgallery.com/extension/4773ce75-6f30-4269-9557-1f7c30a47be2/
在 visual studio 2015 update 1 发布博客 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\
Mads Kristensen 现在似乎有一个扩展,它为 Visual Studio 提供了大量的 TextMate 语法。看起来添加其他语言也很容易...您可以查看存储库并确切了解添加其他语法所需的内容。
http://vsixgallery.com/extension/4773ce75-6f30-4269-9557-1f7c30a47be2/