Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
772 views
in Technique[技术] by (71.8m points)

asp.net - Visual Studio 2008 formats asp tags to lowercase

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

Example:

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

becomes

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

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

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?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

Go to Tools | Options...

Expand: Text Editor - HTML

Select the "Format" node, and see what settings you have for "Capitalization" of "Server tag" and "Server attributes - I think the default is now "Lowercase" - try setting that to "Assmebly definition" instead.

More information on these options can be found here:

Format, HTML, Text Editor, Options Dialog Box


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...