简体   繁体   English

代码编辑器Visual Studio 2013中缺少颜色

[英]Missing colors in code editor Visual Studio 2013

Is it just me, or am I missing some colors in my editor? 仅仅是我,还是我的编辑器中缺少某些颜色? Just noticed and now it annoys the h*ck out of me. 刚刚注意到,现在它使我烦恼了。 没有颜色

I'm running VS2013 with Resharper 8 and the default Light theme provdied with it 我正在运行带有Resharper 8的VS2013,并且提供了默认的Light主题

It looks like you're missing the color setting for User Types: 您似乎缺少了“用户类型”的颜色设置:

在此处输入图片说明

No idea why they're not set by the profile settings. 不知道为什么没有通过配置文件设置来设置它们。 The defaults for this color are: Hue 129, Sat 145, Lum 103, R 43, G 145, B 175. 该颜色的默认值为:色相129,色六145,色度103,R 43,G 145,B 175。

Found the solution to my problem by following the accepted answer in this SO post . 通过遵循此SO帖子中的可接受答案找到了解决我问题的方法。 Thank you so much for your help and suggestions. 非常感谢您的帮助和建议。

For the record (Note OperationDataSources() ) : 作为记录(请注意OperationDataSources() ): 在此处输入图片说明

You have to be aware when adding extensions to a visual studio code, as for example .h .cpp .cu and many other code based files. 在将扩展名添加到Visual Studio代码时,例如,.h .cpp .cu和许多其他基于代码的文件时,您必须注意。 Visual Studio will most likely just show you no code colors. Visual Studio很可能只会显示任何代码颜色。

You can add extensions in the options from Tools-Opions, and add specific code type to any file that you already changed with explorer for example to notepad or wordpad. 您可以在Tools-Opions的选项中添加扩展名,并将特定的代码类型添加到资源管理器已更改的任何文件中,例如记事本或写字板。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM