Tuesday, November 27, 2012

Tip 5.7: You can double-click messages in the Output window to jump to that location in the code

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

Sara Ford's Blog


If you double-click any error or warning in the Output window, you jump directly to that location in the file or to the closest equivalent location. There's also a button on the Output window toolbar that allows you to do the same thing, just in case you ever wondered what this Find Message In Code button did.



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

Monday, November 26, 2012

Tip 5.6: You can use F8 and Shift+F8 to navigate among errors in the Output window

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

Sara Ford's Blog


F8 and Shift+F8 are bound to the commands Edit.GoToNextLocation and Edit. GoToPreviousLocation. If you have the Error List open, F8 and Shift+F8 take you directly to the error in question by highlighting that part of the code. If you have the Output window open, F8 and Shift+F8 put the cursor on each error listed.



Happy Programming! =)
Posted by Nils-Holger at 3:07 PM with 679 comments.

Sunday, November 25, 2012

Tip 5.5: How to create a command alias

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

Sara Ford's Blog

To create an alias, open the Command Window and type alias ha Help.About.



Now typing ha in the Command Window pops open the Help–About menu. But let's explore a more practical application. Consider creating the alias se for Solution Explorer, as shown here: >alias se View.SolutionExplorer The idea for this example is that while you are coding in the editor, you can press Ctrl+/ to jump to the Find window and type se. Actually, you've probably already used one of the predefined aliases before. The command Debug.Print is alias to ?. To see the full list of aliases, type alias.



Finally, to reset your Command Window aliases back to defaults, type alias /reset.



Or you can simply use the /delete switch to delete a particular alias—for example, type alias se /delete to delete that se alias. Happy Programming! =)
Posted by Nils-Holger at 9:15 PM with 600 comments.