Monday, February 25, 2013

Tip 7.25: How to select the startup project from the Solution Explorer

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

Sara Ford's Blog



There are two ways you can select a project as the startup project when you have more than one project in your solution. The first way is via the Solution Property pages. Right-click the solution node in the Solution Explorer, and under Common Properties–Startup Project, you can choose Single Startup Project. Now you can select which project you want.



The second way is to right-click the project and select the Set As StartUp Project command from the context menu.



The startup project appears in bold in the Solution Explorer.



Happy Programming! =)
Posted by Nils-Holger at 1:39 PM with 438 comments.

Sunday, February 24, 2013

Tip 7.24: You can use DataTips to edit a variable's content

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

Sara Ford's Blog



Whenever you are debugging and want to change the contents of a variable, you can drag the variable into the Watch window. But you can also use DataTips to change the variable without leaving the editor. Hover over a variable when you have hit a breakpoint. You'll notice a glorified ToolTip appear. This is actually a DataTip. You can click the value of the variable to go into an edit mode. Change the contents of the variable, and press Enter to commit.



If you have the Autos window open, you'll notice the color change, implying the commit was successful.



Happy Programming! =)
Posted by Nils-Holger at 12:11 PM with 478 comments.

Saturday, February 23, 2013

Tip 7.23: You can disable the warning message before you delete all breakpoints

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

Sara Ford's Blog



The previous tip talked about how to delete all breakpoints. If you are following along at home, you have encountered the warning message that appears when you attempt to do this.



If you find it annoying, you can disable it by going to Tools–Options–Debugging–General and unchecking the Ask Before Deleting All Breakpoints option.



Happy Programming! =)
Posted by Nils-Holger at 12:39 PM with 694 comments.