Sunday, April 27, 2014

Tip 5.12: You can redirect debug messages to the Output window

"Visual Studio Tips, 251 ways to improve your Productivity in Visual Studio", courtesy of 'Sara Ford'

Sara Ford's Blog



Depending on your environment settings, such as the Visual Basic Development Settings, you may have noticed that the Output window's debug content is redirected to the Immediate Window instead. Or maybe you want the Output window's debug content to go to the Immediate Window.

Go to the Tools–Options–Debugging–General page. On this page, you'll find the option Redirect All Output Window Text To The Immediate Window.

VSTip5120

To illustrate, let's say you have this option enabled and you hit an assert. You'll see the assert information in the Immediate Window and not in the Output window.

VSTip5120a

Happy Programming! =)
Posted by Nils-Holger at 11:51 AM with 693 comments.

Saturday, April 26, 2014

Tip 5.11: You can customize the color scheme in the Output window

"Visual Studio Tips, 251 ways to improve your Productivity in Visual Studio", courtesy of 'Sara Ford'

Sara Ford's Blog



On the Tools–Options–Environment–Fonts And Colors page, in the Show Settings For combo box, there's an Output Window option. When it's selected, you'll be able to customize the colors for the following types of text: Plain Text, Selected Text, and Inactive Selected Text. Additionally, you can customize the color of the Current List Location.

VSTip5110

If you set the Item Background to Black and the Item Foreground to White, the Output window displays the visited line in the new color scheme.

VSTip5110a

Sara Aside

For her, the dark blue has always been a bit distracting because it makes her think that the focus is in the Output window when it really is in the editor. Another good combination is to change Item Foreground to Cyan and Item Background to White.


Happy Programming! =)
Posted by Nils-Holger at 11:45 AM with 1259 comments.

Friday, April 25, 2014

Tip 5.10: You can enable word wrap in the Output window

"Visual Studio Tips, 251 ways to improve your Productivity in Visual Studio", courtesy of 'Sara Ford'

Sara Ford's Blog



The Output window has an icon on the toolbar that allows you to enable word wrap.

Sara Aside

She doesn't use word wrap, as she prefers one line per error. But she see the potential if you have customized the Output window for space and need to read the entire line without having to scroll left or right.
Here is the Output window before pressing the Toggle Word Wrap button.

VSTip5100

Here is the Output window after pressing the Toggle Word Wrap button.

VSTip5100a

Happy Programming! =)
Posted by Nils-Holger at 11:43 AM with 698 comments.