Tuesday, December 31, 2013

Tip 2.2: How to jump to the beginning of some selected text when hitting escape

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

Sara Ford's Blog



She hopes this tip's title makes sense. The idea is that you select some text and then hit Escape. Now where do you want the cursor to go?



If you want it to stay where it is, that's the default behavior. But if you want it to jump to the beginning of the selection (that is, the selection anchor), go to Tools–Options–Text Editor–General and check Go To Selection Anchor After Escape.

Happy Programming! =)
Posted by Nils-Holger at 9:40 AM with 542 comments.

Monday, December 30, 2013

Tip 2.1: How to use box/column selection in the editor

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

Sara Ford's Blog



The editor offers two different selection models: stream and box. There's also line selection, but that's only in Brief emulations. (See Tip 2.15 for more information on editor emulations.) Stream selection, using Shift+Arrow key, is what everyone is familiar with. But box selection allows you to manually select columns and lines at the same time.



Just hold down Shift+Alt+Arrow key and you'll quickly get the feel for box selection. You can also use box selection using the mouse by holding down the Alt key while you select text. Cut, Copy, Paste still works, but just keep track of where you started to select the text. Ah, the memories of having to test all this functionality.

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

Sunday, December 29, 2013

Tip 1.36: You can hide the status bar

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

Sara Ford's Blog



She's not sure why you may want to hide the status bar. Maybe when you are in Full Screen mode, you want those extra few pixels at the bottom for a true full-screen experience. Whatever the reason, you can go to Tools–Options–Environment–General and uncheck Show Status Bar. Now Visual Studio does not have a status bar.



And while we're on the subject of the status bar, here's another quick tip to keep in mind if you choose to leave the status bar showing. You can double-click the section of the status bar that shows the line, column, and character to pop up the Go To Line dialog box.



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