我怎样才能得到用户类型C#语法高亮显示在VS 2012 RC再次合作? [英] How can I get user type C# syntax highlighting working again in VS 2012 RC?

查看:102
本文介绍了我怎样才能得到用户类型C#语法高亮显示在VS 2012 RC再次合作?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的语法高亮显示的C#code莫名其妙部分已经消失在VS 2012 IDE。卸载,重新启动,并重新安装什么都不做,也不会重置颜色选项对话框。

Somehow part of my syntax highlighting for C# code has disappeared in the VS 2012 IDE. Uninstalling, rebooting, and reinstalling does nothing, nor does resetting the colors in the options dialog.

下面是所有出现在默认情况下(黑色)项目的一些例子,通常有颜色,这并不:

Here are some examples of items which all appear in default (black) that normally have color which don't:


  • 属性

  • 系统类

  • 我自己的类

和这里有一些关键字,还是有颜色:

And here are some keywords that still have color:


  • 使用

  • 公共

  • 无效

  • VAR


有没有其他人经历过这个,并设法解决它?

Has anyone else experienced this and managed to fix it?

推荐答案

下面是一个简单的解决方案。进入其中, devenv的是(2012 RC)的目录,然后键入 devenv.exe的/设置。这将解决您的问题。

Here is a simple solution. Go to the directory where devenv is (for 2012 RC), and type devenv.exe /setup. It will fix your problem.

devenv.exe的通常是像 C:\\ Program Files文件(x86)的\\微软的Visual Studio 11.0 \\ Common7 \\ IDE

编辑:有人建议你从Visual Studio命令提示符下做到这一点(开始>微软的Visual Studio>工具> Visual Studio命令提示符),和/或确保您的命令提示符下有管理员权限。

It has been suggested that you do this from the Visual Studio command prompt (Start>Microsoft Visual Studio>Tools>Visual Studio Command Prompt), and/or make sure your command prompt has administrator permissions.

注意他人:这有一个很好的Visual Studio的多个版本,包括2008年,2010年,11测试工作的机会,...

Note for others: This has a very good chance of working for many other versions of Visual Studio, including 2008, 2010, 11 beta, ...

这篇关于我怎样才能得到用户类型C#语法高亮显示在VS 2012 RC再次合作?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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