Monday, July 28, 2014

Tip 7.32: You can bind the show Errors, Warnings, and Messages buttons to keyboard shortcuts

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

Sara Ford's Blog



Sara Aside

In the "Tip of the Day" series on her blog, this tip was entry number 200. Considering how she blogged a new tip about Visual Studio every day, it is amazing to think what a difference a day makes. At the time of this writing, she's approaching number 300!


She's excited about this tip. Not because it is tip number 200—this was purely coincidental—but because she accidentally found it while browsing the commands in the Tools–Options–Environment–Keyboard page that contained the word Error.

Go to Tools–Options–Environment–Keyboard, and search for Errors. You'll notice that this odd Errors command will stare back at you.



She says this "odd" command because usually Visual Studio commands have the canonical name format of <word>.<word>. This obviously caught her eye, so she contacted the developer for confirmation.

These commands toggle the Errors, Warnings, and Messages shown on the Error List, so you can bind them to keyboard shortcuts.



For example, you could bind the following commands to the keyboard shortcuts shown:
  • Errors: Ctrl+Alt+Shift+E
  • Warnings: Ctrl+Alt+Shift+W
  • Messages: Ctrl+Alt+Shift+M


Now, instead of clicking the buttons, you can just use the keyboard shortcut. Pretty cool.

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

Sunday, July 27, 2014

Tip 7.31: You can do multicolumn sorting (secondary sort, and so forth) in both the Error List and the Task List

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

Sara Ford's Blog



Both the Error List and the Task List have support for multicolumn sorting, such as secondary sort and tertiary sort.

For example, suppose you want to sort all tasks (or errors) by file first and then by line number so that you can go through each file in the order in which the tasks (or errors) appear.

To do a secondary sort, follow these steps:

  1. Click the column that you want to have as the primary sort (such as File).
  2. Shift+Click on the column you want to have as a secondary sort (such as Line number).
  3. Rinse and repeat for other columns.
For the Error List, you can see how things are sorted first by File and then by Line number.



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

Saturday, July 26, 2014

Tip 7.30: You can view an error's documentation directly from the Error List

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

Sara Ford's Blog



If you right-click an error in the Error List view, you'll see a context menu pop up with the Show Error Help option.



Clicking this command launches the external documentation viewer, also known as dexplorer in some social circles, to that specific error.



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