Visual Studio 2008 将 asp 标签格式化为小写 [英] Visual Studio 2008 formats asp tags to lowercase

查看:19
本文介绍了Visual Studio 2008 将 asp 标签格式化为小写的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

最近,我的 Visual Studio 2008(带有 Resharper 4.5)已开始将 asp 标记重新格式化为小写.

Recently, my Visual Studio 2008(with Resharper 4.5) has started to reformat asp tags into lowercase.

示例:

<asp:Repeater runat="server" id="rp">

变成

<asp:repeater runat="server" id="rp">

而且我找不到让它不这样做的方法.我使用 Ctrl-k Ctrl-d 重新格式化.

and I can't find a way to make it not do this. I use Ctrl-k Ctrl-d to reformat.

我尝试重置 Visual Studio 设置,关闭 Resharper.似乎没什么可咬的.

I've tried resetting the Visual Studio settings, turning off Resharper. Nothing seems to bite.

上周我确实在我的 Documents and Settings 文件夹中删除了一个巨大的 Reflected something 文件夹,这可能是原因吗?

I did delete a huge Reflected something folder in my Documents and Settings folder last week, could this be the reason?

推荐答案

我遇到了相同(或非常相似)的问题.

I had the same (or very similar) issue.

我还删除了文件夹中的一些(但不是全部)文件

I also deleted some (but not all) files in the folder

C:Documents and Settings[username]Application DataMicrosoftVisualStudio9.0ReflectedSchemas

我这样做的原因是因为我的(Windows XP)漫游配置文件的大小受到了坦率的愚蠢限制:-(

The reason I did this is because I'm subject to a frankly daft limit on the size of my (Windows XP) roaming profile :-(

在我完成此 VS 智能感知和文档自动格式化之后,它开始表现得好像它不知道 <asp: 标签是什么一样,并将所有 html 视为纯 html(格式化的标签名称和属性为小写).

After I did this VS intellisense and document auto-formatting started behaving as if it didn't know what the <asp: tags were and treated all the html as plain html (formatted tag names and attributes in lowercase).

我发现 这篇博文 由 Tim Vasil 为我指出了解决方案.

I found this blog post by Tim Vasil which pointed me to the solution.

这是我为解决此问题所做的工作:

Here's what I did to fix this:

  1. 已删除 C:Documents 中的所有文件和设置[用户名]应用程序DataMicrosoftVisualStudio9.0ReflectedSchemas

  1. Deleted all files in C:Documents and Settings[username]Application DataMicrosoftVisualStudio9.0ReflectedSchemas

删除了所有文件C:WINDOWSMicrosoft.NETFrameworkv2.0.50727TemporaryASP.NET 文件

Deleted all files in C:WINDOWSMicrosoft.NETFrameworkv2.0.50727Temporary ASP.NET Files

(注意:VS 最终会在它自己的时间重新生成各种文件...)

(Note: VS eventually regenerates the various files in it's own time...)

这篇关于Visual Studio 2008 将 asp 标签格式化为小写的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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