崇高文字:如何识别(和突出)C#.NET类,方法和属性名? [英] Sublime Text: How to recognize (and highlight) C# .NET Classes, Methods, and Property names?

查看:170
本文介绍了崇高文字:如何识别(和突出)C#.NET类,方法和属性名?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我真的想用崇高的文字多为淡C#代码;不过,我想preFER的崇高文字识别.NET类,方法和属性名;并且,使用的颜色来自我的自定义配色方案,以突出显示它们。

I would really like to use Sublime Text more for light C# coding; however, I would prefer for Sublime Text to identify .NET Classes, Methods, and Property names; and, use colors from my custom color scheme to to highlight them.

我安装了C#编译和运行以及完成;然而,他们并没有任何区别。我希望有人能指点一个插件,可以增加此增强。

I installed "C# Compile and Run" as well as "completion"; however, they didn't make any difference. I'm hoping someone can point me to an addon that could add this enhancement.

推荐答案

我不计划在C#中,所以我不能从个人的经验说,但一个快速的谷歌搜索打开了的 CSHARP-tmbundle ,语言定义的TextMate也应该为崇高的文本。转到您的文件夹中的命令行(%APPDATA%\崇高文字X \包,其中 X 2 3 )和运行

I don't program in C#, so I can't speak from personal experience, but a quick Google search turned up the csharp-tmbundle, a language definition for TextMate that should also work for Sublime Text. Go to your Packages folder on the command line (%APPDATA%\Sublime Text X\Packages where X is either 2 or 3) and run

git clone https://github.com/wintermi/csharp-tmbundle.git C#

和你现在应该在查看一个 C#选项 - >语法菜单,以及通过状态栏最右边的选项来获得语法菜单。为了确定哪些作用域是当前光标正在积极,我强烈建议 ScopeAlways 通过包控制插件可用。

and you should now have a C# option in the View -> Syntax menu, as well as the syntax menu accessible via the far right option in the status bar. For determining which scopes are currently active under your cursor, I highly recommend the ScopeAlways plugin available via Package Control.

祝你好运!

这篇关于崇高文字:如何识别(和突出)C#.NET类,方法和属性名?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆