简体   繁体   English

Visual Studio 2013丢失了代码格式,C#

[英]Visual Studio 2013 lost code formatting, C#

I've updated my Visual Studio to 2013 Professional, but in doing so I seem to have lost a lot of the code formatting. 我已经将我的Visual Studio更新为2013 Professional,但是这样做我似乎丢失了很多代码格式。 I've gone into Tools - Options - Environment - Fonts and Colors and reset the defaults. 我已经进入工具 - 选项 - 环境 - 字体和颜色并重置默认值。 I've even gone Tools - Options - Environment - Import and Export Settings and browsed to my 2012 settings folder , but again I am missing out on a lot of code formatting. 我甚至已经去了工具 - 选项 - 环境 - 导入和导出设置并浏览到我的2012设置文件夹 ,但我又错过了很多代码格式。

Keywords are highlighted, but any classes etc are not. 关键字会突出显示,但任何类等都不会突出显示。 Other people in my team have upgraded without any problems (I just used the default download installer) 我团队中的其他人已经升级而没有任何问题(我只使用了默认的下载安装程序)

Any help is much appreciated as currently I'm basically just using a glorified version of notepad to code with this below image 任何帮助都非常感谢,因为目前我基本上只是使用一个美化版的记事本来编码下面的图像

在此输入图像描述

If you're using Productive Power Tools, go to => Tools -> Options -> Productive Power Tools . 如果您使用的是Productive Power Tools, 请转到=>工具 - >选项 - > Productive Power Tools In main menu, TURN OFF the option: Colorized Parameter Help. 在主菜单中, 关闭选项: Colorized Parameter Help。

Otherwise Go to tools in visual studio > Option>TextEditor>C#>See the option for anything you missed . 否则转到visual studio中的工具>选项> TextEditor> C#>查看错过任何内容的选项。 (Am not sure , It's pretty,But it's my small idea only) (我不确定,这很漂亮,但这只是我的小想法)

See this same discussions : Plain C# Editor in Visual Studio 2012 (No intellisense, no indentation, no code highlighting) 看到同样的讨论: Visual Studio 2012中的普通C#编辑器(没有intellisense,没有缩进,没有代码突出显示)

Once in a while (each day) I have the same problem. 偶尔(每天)我遇到同样的问题。 Especially after changing project branch in git. 特别是在改变git中的项目分支之后。

The simplest way to fix so far: file, close solution and then file, recent projects and solutions and reload your solution. 到目前为止最简单的修复方法:文件,关闭解决方案,然后文件,最近的项目和解决方案,并重新加载您的解决方案。

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

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