Does anyone know how 开发者_如何学运维can I auto-reformat LINQ code in VS 2010? For example you can format C# code with ctrl+k+d.
Thanks for any help!
Ctrl K D will format LINQ also. If it's not formatting it, that's probably due to a syntax error. Usually when you hit the ; at the end of the LINQ statement, it formats itself more nicely.
精彩评论