崇高文字:如何识别(和突出)C#.NET类,方法和属性名?崇高、属性、如何识别、突出

2023-09-04 22:38:02 作者:啸月天狼

我真的想用崇高的文字多为淡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.

祝你好运!