Visual Studio 2008的格式ASP标记为小写 [英] Visual Studio 2008 formats asp tags to lowercase
问题描述
最近,我的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.
我没有删除我的文档和设置一个巨大的反射的东西夹在上周夹,这会是什么原因呢?
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 Data\Microsoft\VisualStudio\9.0\ReflectedSchemas
我这样做的原因是因为我受到我的(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 IntelliSense和文档自动格式化开始表现,就好像它不知道是什么的&lt; 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).
我发现的这个博客帖子通过添瓦西这向我指出了解决方案。
I found this blog post by Tim Vasil which pointed me to the solution.
下面是我做来解决这个问题:
Here's what I did to fix this:
-
删除用C中的所有文件:\\文件
和设置[用户名] \\应用
数据\\微软\\ VisualStudio的\\ 9.0 \\ ReflectedSchemas
Deleted all files in C:\Documents and Settings[username]\Application Data\Microsoft\VisualStudio\9.0\ReflectedSchemas
删除所有文件
C:\\ WINDOWS \\ Microsoft.NET \\框架\\ V2.0.50727 \\临时
ASP.NET文件
Deleted all files in C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files
(注:VS最终重新生成它自己的时间的各种文件...)
(Note: VS eventually regenerates the various files in it's own time...)
这篇关于Visual Studio 2008的格式ASP标记为小写的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!