Sunday, November 30, 2014

Tip 4.30: How to resize a tool window from the keyboard

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

Sara Ford's Blog



  1. Press Alt once.
  2. Press the Spacebar once. You will get the standard window system menu with Move and Size.



  3. Select Size.
  4. Press the arrow keys toward the window edge you want to resize, and resize from there.
  5. Press Enter to commit to the resizing, or press Esc to cancel the resize changes.

Note

Using the Move command from this menu prevents the docking targets from appearing. This is the same as pressing Ctrl and dragging an item using the mouse. If you want to use docking targets via the keyboard, see Tip 4.29.


If you press Alt+Spacebar, you get the main Visual Studio window system menu; this is why you must release the Alt key before you press the Spacebar.

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

Saturday, November 29, 2014

Tip 4.29: How to drag a tool window around using the keyboard

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

Sara Ford's Blog



With the desired tool window selected, press Alt+Minus to bring up the tool window menu. Press the Down Arrow to select the Move command, and press Enter. Now you can control the tool window with the arrow keys.



To dock, simply use the arrow keys to get to the desired dock target and hit Enter to commit to docking the tool window to the new location.

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

Friday, November 28, 2014

Tip 4.28: How to customize what clicking the X button does to a tool window or tool window tab group

"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–General page, you'll find the Close Button Affects Active Tool Window Only check box. The following screen shot shows a snapshot of two tool window tabs docked together, with the close button circled.



If you want only Solution Explorer to close when pressing the X button, enable the option. Otherwise, both tool windows will close.

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