Thursday, December 19, 2013

Tip 1.26: You can bind macros to keyboard shortcuts (or, "How to quickly increase or decrease your text editor font size")

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

Sara Ford's Blog

Sara Aside

She wrote the accessibility macros, which were her 133-line contribution to the Visual Studio 2005 product. You'll also find them in Visual Studio 2008.
Go to Tools–Options–Environment–Keyboard and, in the Show Settings For edit box, type macro. You'll see a list of samples at the top. There are two accessibility macros worth noting: the increase and decrease text editor font size macros.

If you are using the General Development Settings and do not want to cause any conflicts with other keyboard shortcuts, bind the increase macro to Ctrl+Alt+Shift+UpArrow and the decrease macro to Ctrl+Alt+Shift+DownArrow. Of course, you can bind them to whatever shortcut you want, but these will not conflict with General Development Settings. Now open the editor and try out the keyboard shortcuts. Remember that you have to hold down the Ctrl+Alt+Shift keys and press the up or down arrow repeatedly to really experience the full effect. Enjoy!

Happy Programming! =)
Posted by Nils-Holger at 1:44 PM with 0 comments.
Add Your Comment