Line length
I can't find the option to set the maximum line length and display the print margin. I would also like to know if the auto-formatter automatically reorganizes the code so it doesn't exceed the line length?
Can someone help?
I can't find the option to set the maximum line length and display the print margin. I would also like to know if the auto-formatter automatically reorganizes the code so it doesn't exceed the line length?
Can someone help?
You can enable word-wrap but I don't think the effect is terribly satisfying for code -- it's more intended for HTML and XML.
Displaying print margins is completely impossible. If you're looking to pretty-print your source code I recommend you search for a third-party solution as Visual Studio's printing feature is extremely rudimentary.
However, you can enable "editor guidelines" at a specific character position to help you wrap your code manually. Unfortunately, this requires a registry hack. Microsoft's Sara Ford posted the directions in her weblog:
http://blogs.msdn.com/saraford/archive/2004/11/15/257953.aspx
You can submit any other feature requests you have at the Product Feedback Center, though:
http://lab.msdn.microsoft.com/productfeedback/
And here's my editor guidelines request, in case you want to vote for it: