Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Format LINQ code in VS2010

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!

like image 329
Shivi Avatar asked Nov 29 '25 15:11

Shivi


1 Answers

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.

like image 83
Scott Stafford Avatar answered Dec 02 '25 03:12

Scott Stafford



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!