Reputation: 6846
I have an annoying problem with Visual Studio 2008.
When I run the "format code" command ("control+k, control+d") -- it will insert a carriage return. How do I get it to stop doing this???
For example:
<label for="shipCompanyName">Company Name:</label>
undesirably becomes
<label for="shipCompanyName">
Company Name:<label />
Upvotes: 8
Views: 1727
Reputation: 2386
Go to Tools, Options. Open Text Editor, HTML, and Format. Uncheck "Wrap tags when exceeding specified length".
Oddly, VS2008 doesn't have the same option for XML.
Upvotes: 9