VS 2012中C#文件没有语法突出显示或智能感知 [英] No syntax highlighting or intellisense for C# files in VS 2012

查看:108
本文介绍了VS 2012中C#文件没有语法突出显示或智能感知的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚从MSDN(11.0.50727.1)安装了VS2012 Premium的RTM版本.我已经创建了一个C#ASP.NET MVC 4应用程序和一个C#控制台应用程序,但是都没有为我提供以下文件类型的语法突出显示或Intellisense:

I've just installed the RTM version of VS2012 Premium from MSDN (11.0.50727.1). I have created an C# ASP.NET MVC 4 application, and a C# console application, but neither give me syntax highlighting or Intellisense for the following file types:

  • cs
  • cshtml

所有其他文件类型似乎都可以正常工作,包括:

BUT all other file types seem to work fine, including:

  • html
  • js
  • XML
  • CSS
  • config

我正在Windows 7上运行,在Mac OSX Lion上的VMWare Fusion 5中进行了虚拟化.我还在同一虚拟机上安装了VS 2010,该虚拟机已经并且仍然可以正常运行.

I am running on Windows 7, virtualized in VMWare Fusion 5, on Mac OSX Lion. I also have VS 2010 installed in the same VM, which has and still does run fine.

我尝试运行devenv.exe/setup没有成功.

I have tried running devenv.exe /setup with no success.

我尝试过工具">导入和导出设置">重置",但没有成功.

I have tried Tools > Import and Export Settings > Reset with no success.

有人知道如何使它工作吗?

Anyone got any ideas how to get this working?

推荐答案

我发现我还安装了Visual Studio 2012 Web Express RC.当我卸载它时,C#的智能感知和语法高亮神奇地开始起作用.

I found I also had Visual Studio 2012 Web Express RC installed. When I uninstalled this, C# intellisense and syntax highlighting magically started to work.

这篇关于VS 2012中C#文件没有语法突出显示或智能感知的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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