Archives for February 2009

#46 Cut/Move/Delete Current line in the Visual Studio editor

Do you recognize this sequence?

Home.

Shift.

Up or Down.

[CTRL]+[X] or [Delete]

There are many better ways to cut or delete your current line of code/markeup/css/xaml/whatever. This Video Trick shows you how.

This work is licensed under a Creative Commons license.

#45 Move cursor to top or bottom of screen (without scrolling)

Wanna get to the top of your screen, but you know PgUp is too far? How about the bottom? This is a cool trick that I find myself using all the time. It saves 100’s of ups and downs a day, because you can always get to the place you’re interested in faster than up,up,up,up,up,up,up,up.

BONUS Content.

At the end of this video, we talk about debugging your keyboard so if some of your keystrokes don’t work as described, you can use Visual Studio to find out why!

[CTRL]+[PgUp] = Move to top of page, without scrolling

[CTRL]+[PgDn] = Move to bottom of page, without scrolling

 

[CTRL]+[SHIFT]+[PgUp] = Move and Select to top of page, without scrolling

[CTRL]+[SHIFT]+[PgDn] = Move and Select to bottom of page, without scrolling

 

[CTRL]+[Up Arrow] = Leave cursor in current position, but scroll up

[CTRL]+[Down Arrow] = Leave cursor in current position, but scroll down

This work is licensed under a Creative Commons license.

#44 Delete whole word (or whitespace) at a time forward and backwards

We all edit. Coders really are just really smart typists right? We make mistakes. We edit other peoples stuff, we have brain farts. These tricks teach you to delete fast and accurate. Delete words or whitespace groups forward or backwards. I use this all the time. These are tricks you should add to you daily arsenal. Tricks that you can tease your friends about because they don’t know them. Especially the end of line delete next line white space trick in the video. Yeah. It’s that good!

#43 Select from Cursor to last “Go Back” marker in Visual Studio

This is a quick trick that I’ve started using the move my cursor to the last place, making a selection along the way. It’s kind of weird to explain in text without a 100 images. Video rules!!!

[CTRL]+[=] = Select from current cursor position to last Go Back marker.

 

This work is licensed under a Creative Commons license.

#42 Navigate to off screen tabs in Visual Studio

To many files open. [ALT]+[TAB] works, but here is an alternative. I use this quite often, but there is a little tiny glyph update that I didn’t notice before. Acutally I have noticed it, I just didn’t register the fact that it changed once in a while. Now I know why. Do you?

 

This work is licensed under a Creative Commons license.