Friday, August 01, 2008

I thought it would be useful if I did a recap of all of the 31 tips and tricks from the 31 Days of Visual Studio Tips & Tricks. I hope it helps. I’ll post a follow up with all the user submitted tips soon!

Here’s the download link for the for the complete PowerPoint:

PowerPoint: 31 Days of Visual Studio 2008 Tips & Tricks.pptx

 

PowerPoint Slide

Keyboard Shortcut

image

Day 1

 

Show Shortcut Keys

image

Day 2

Open Smart Tag

Ctrl + .

Open Smart Tag

Ctrl + Shift + F10

image

Day 3

Navigate Forwards

Ctrl + –

Navigate Backwards

Ctrl + Shift + -

image

Day 4

 

Tools, Options…, Display Line Numbers

image

Day 5

 

Cycle Clipboard Ring

Ctrl + Shift + V

image

Day 6

 

Go to Definition

F12

image

Day 7

 

Go to Line

Ctrl + G

image

Day 8

Vertical Block Selection

Alt + Mouse

Shift + Alt + Right Arrow

image

Day 9

View Properties Window

F4

View Properties Window

Alt + Enter

image

Day 10

Comment Selection

Ctrl + K, Ctrl + C

Uncomment Selection

Ctrl + K, Ctrl + U

image

Day 11

 

Toggle Code / Design Views

F7

image

Day 12

Make Lowercase

Ctrl + U

Make Uppercase

Ctrl + Shift + U

image

Day 13

 

Incremental Search

Ctrl + I

image

Day 14

 

Ctrl + Tab Navigator Window

Ctrl + Tab

image

Day 15

 

View Object Browser

Ctrl + Alt + J

image

Day 16

 

Delete Line

Ctrl + L

Shift + Delete

image

Day 17

 

Add New Item to Project

Ctrl + Shift + A

image

Day 18

 

Close Current Document

Ctrl + F4

image

Day 19

 

Toggle Breakpoint

F9

image

Day 20

 

Find All References

Shift + F12

image

Day 21

Move Cursor One Word Right

Ctrl + Right Arrow

Move Cursor One Word Left

Ctrl + Left Arrow

image

Day 22

 

The Rename Refactor

Ctrl + R, R

image

Day 23

 

Find All References

Shift + F12

image

Day 24

 

Format Document

Ctrl + K, Ctrl + D

image

Day 25

 

View Task List

Ctrl + \, Ctrl + T

image

Day 26

 

Find in Files

Ctrl + Shift + F

image

Day 27

 

Toggle Outlining Expansion

Ctrl + M, Ctrl + M

image

Day 28

 

Close All Documents

Alt + W, L

image

Day 29

 

Save Any Output Window

Ctrl + S

image

Day 30

 

Build Solution

Ctrl + Shift + B

image

Day 31

 

Reset Window Layout

Alt, W, R


Friday, August 01, 2008 16:15:00 (Eastern Standard Time, UTC-05:00)  #    Comments [2]  |  Trackback
Thursday, July 31, 2008

image

image

 A place for everything, everything in its place.
Benjamin Franklin

 

 

 

 

 

 

Many times I find that throughout my word day I have move and resized many of the various elements in the Visual Studio IDE. I might have expanded my properties windows, in order to see more of the property name. And I might have end up needing to shrink my toolbox window so I could see more of my code on the screen at one time. But sometimes you just want to hit reset and have everything go back to where it belongs.

Reset Window Layout

Alt, W, R

Note: The preceding image will take you to a full size image if you want to see this in more detail.

Feedback:

If you have a favorite Visual Studio Tip or Trick be sure to share it in the comments. I’ll compile a list and post it for everyone once there are enough.

PowerPoint: 31 Days of Visual Studio 2008 Tips & Tricks.pptx (Note: PowerPoint is updated daily to include new items.)


Thursday, July 31, 2008 16:25:00 (Eastern Standard Time, UTC-05:00)  #    Comments [0]  |  Trackback
Wednesday, July 30, 2008
image

I came, I coded, I compiled. If only Julius Caesar had been a developer, maybe Duke Nukem Forever would be released by now. So you made a quick change and need to build the solution as fast as possible and get it to the QA department now. What is the fastest way to do this?

Build Solution

Ctrl + Shift + B

Note: The preceding image will take you to a full size image if you want to see this in more detail.

Feedback:

If you have a favorite Visual Studio Tip or Trick be sure to share it in the comments. I’ll compile a list and post it for everyone once there are enough.

PowerPoint: 31 Days of Visual Studio 2008 Tips & Tricks.pptx (Note: PowerPoint is updated daily to include new items.)


Wednesday, July 30, 2008 16:48:00 (Eastern Standard Time, UTC-05:00)  #    Comments [2]  |  Trackback
Tuesday, July 29, 2008

image

Output is pretty much the bread and butter of any application. Visual Studio has a whole window that is dedicated to dealing with various trace information. Sometime we would like to be able to save and view this information later or in another utility. But it is a real pain to do this process manually. There has to be an easier way…

Save Any Output Window

Ctrl + S

Note: The preceding image will take you to a full size image if you want to see this in more detail.

Feedback:

If you have a favorite Visual Studio Tip or Trick be sure to share it in the comments. I’ll compile a list and post it for everyone once there are enough.

PowerPoint: 31 Days of Visual Studio 2008 Tips & Tricks.pptx (Note: PowerPoint is updated daily to include new items.)


Tuesday, July 29, 2008 16:16:00 (Eastern Standard Time, UTC-05:00)  #    Comments [0]  |  Trackback
Monday, July 28, 2008

imageSo you have all kinds of windows and documents open in Visual Studio, everything from form designers to XML editors. Now you want to close everything and start something else, and you’re in a big hurry. What do you do?

Close All Documents

Alt + W, L

Note: The preceding image will take you to a full size image if you want to see this in more detail.

Feedback:

If you have a favorite Visual Studio Tip or Trick be sure to share it in the comments. I’ll compile a list and post it for everyone once there are enough.

PowerPoint: 31 Days of Visual Studio 2008 Tips & Tricks.pptx (Note: PowerPoint is updated daily to include new items.)


Monday, July 28, 2008 16:06:00 (Eastern Standard Time, UTC-05:00)  #    Comments [0]  |  Trackback
Sunday, July 27, 2008
image

Visual Studio allows developers to collapse code into regions, and so on. Sometimes this is helpful, sometimes not so much. But with the power of Visual Studio keyboard shortcuts we can make it less troublesome to manage this feature.

Here’s how:

Toggle Outlining Expansion

Ctrl + M, Ctrl + M

Note: The preceding image will take you to a full size image if you want to see this in more detail.

Feedback:

If you have a favorite Visual Studio Tip or Trick be sure to share it in the comments. I’ll compile a list and post it for everyone once there are enough.

PowerPoint: 31 Days of Visual Studio 2008 Tips & Tricks.pptx (Note: PowerPoint is updated daily to include new items.)


Sunday, July 27, 2008 15:55:00 (Eastern Standard Time, UTC-05:00)  #    Comments [0]  |  Trackback
Saturday, July 26, 2008

imageIt does take long to have a ton of code on your hands, especially when you need to find something in a hurry. What can we do? Do we have a chance? How can we best find something in all of our solutions files?

Here’s how:

Find in Files

Ctrl + Shift + F

Note: The image above will take you to a full size image if you want to see this in more detail.

Feedback:

If you have a favorite Visual Studio Tip or Trick be sure to share it in the comments. I’ll compile a list and post it for everyone once there are enough.

PowerPoint: 31 Days of Visual Studio 2008 Tips & Tricks.pptx (Note: PowerPoint is updated daily to include new items.)


Saturday, July 26, 2008 16:36:00 (Eastern Standard Time, UTC-05:00)  #    Comments [0]  |  Trackback
Friday, July 25, 2008

image

So, how long is your task list? Do you have a ton of TODO’s? Did you know you can use Visual Studio to track your TODO’s in a task list? All you have to do is mark each TODO as follows:

// TODO: this is an example of something I really need to do

If you do this you can see your TODO’s in Visual Studio Task List dialog, which you can always pull up with the following keyboard shortcut:

View Task List

Ctrl + \, Ctrl + T

Note: The image above will take you to a full size image if you want to see this in more detail.

Feedback:

If you have a favorite Visual Studio Tip or Trick be sure to share it in the comments. I’ll compile a list and post it for everyone once there are enough.

PowerPoint: 31 Days of Visual Studio 2008 Tips & Tricks.pptx (Note: PowerPoint is updated daily to include new items.)


Friday, July 25, 2008 16:33:00 (Eastern Standard Time, UTC-05:00)  #    Comments [2]  |  Trackback
Thursday, July 24, 2008

Have you ever gotten code from someone or somewhere and you were not “thrilled” with how it was formatted. Was it just formatted wrong? Then the “Format Document” keyboard shortcut is for you! It will take the file you have open and format all the code until it is valid. Personally I wish their was a “Format Document for Chris Craft” keyboard shortcut because Visual Studio is a lot more forgiving than I am. But that’s okay it is still a life saver and you will love it one day when it just make the code better, all in one simple keyboard shortcut.

Format Document

Ctrl + K, Ctrl + D

Note: The image above will take you to a full size image if you want to see this in more detail.

Feedback:

If you have a favorite Visual Studio Tip or Trick be sure to share it in the comments. I’ll compile a list and post it for everyone once there are enough.

PowerPoint: 31 Days of Visual Studio 2008 Tips & Tricks.pptx (Note: PowerPoint is updated daily to include new items.)

image


Thursday, July 24, 2008 16:36:00 (Eastern Standard Time, UTC-05:00)  #    Comments [0]  |  Trackback
Wednesday, July 23, 2008
image

Screen real estate is always in short demand. Give us more monitors, give us bigger monitors. What would you say if you could have more screen real estate for coding with a single keyboard shortcut? You can, it is easy. All you have to do is the following:

Toggle Full Screen Mode

Shift + Alt + Enter

Note: The image above will take you to a full size image if you want to see this in more detail.

Feedback:

If you have a favorite Visual Studio Tip or Trick be sure to share it in the comments. I’ll compile a list and post it for everyone once there are enough.

PowerPoint: 31 Days of Visual Studio 2008 Tips & Tricks.pptx (Note: PowerPoint is updated daily to include new items.)


Wednesday, July 23, 2008 18:17:00 (Eastern Standard Time, UTC-05:00)  #    Comments [2]  |  Trackback
Monday, July 21, 2008
image

How often do you want to move across one of your lines of code? Every day? Every hour? More? I’m sure it is often. And I hope you know and use this shortcut since it will save you lots of effort ever time you use it. Try it today, I bet you’ll love it.

Move Cursor One Word Right

Ctrl + Right Arrow

Move Cursor One Word Left

Ctrl + Left Arrow

Note: The image above will take you to a full size image if you want to see this in more detail.

Feedback:

If you have a favorite Visual Studio Tip or Trick be sure to share it in the comments. I’ll compile a list and post it for everyone once there are enough.

PowerPoint: 31 Days of Visual Studio 2008 Tips & Tricks.pptx (Note: PowerPoint is updated daily to include new items.)


Monday, July 21, 2008 18:38:00 (Eastern Standard Time, UTC-05:00)  #    Comments [0]  |  Trackback
Sunday, July 20, 2008

image

Let’s say you have a customer class. You know this class is used throughout your solution, but you aren’t sure exactly where it is being used. How can you quickly and easily find out this information?

All you have to do is use “Find All References”, either use the right-click menu item or even better use this keyboard shortcut:

Find All References

Shift + F12

Note: The image above will take you to a full size image if you want to see this in more detail.

Feedback:

If you have a favorite Visual Studio Tip or Trick be sure to share it in the comments. I’ll compile a list and post it for everyone once there are enough.

PowerPoint: 31 Days of Visual Studio 2008 Tips & Tricks.pptx (Note: PowerPoint is updated daily to include new items.)


Sunday, July 20, 2008 12:30:00 (Eastern Standard Time, UTC-05:00)  #    Comments [0]  |  Trackback
Saturday, July 19, 2008

image If you ever find yourself debugging a program by stepping through various classes, methods, and lines of code, the toggle breakpoint keyboard shortcut will be there to assist you. As you are stepping through the code and hit various breakpoints or potential breakpoints a simple single key press is all it takes to either add or remove that line of code from your list of breakpoints.

Toggle Breakpoint

F9

Note: The image above will take you to a full size image if you want to see this in more detail.

Feedback:

If you have a favorite Visual Studio Tip or Trick be sure to share it in the comments. I’ll compile a list and post it for everyone once there are enough.

PowerPoint: 31 Days of Visual Studio 2008 Tips & Tricks.pptx (Note: PowerPoint is updated daily to include new items.)


Saturday, July 19, 2008 18:24:00 (Eastern Standard Time, UTC-05:00)  #    Comments [0]  |  Trackback
Friday, July 18, 2008
image

Today’s tip is an interesting one. Do you know how to close an application window in Windows? Usually you can press Alt + F4. Visual Studio has similar feature, that comes in handy. The close current document keyboard shortcut works on most documents irregardless of whether they are in code view or design view. Quite useful and allows yours hands to spend more time on the keyboard and less time moving the mouse around everywhere.

Close Current Document

Ctrl + F4

Note: The image above will take you to a full size image if you want to see this in more detail.

Feedback:

If you have a favorite Visual Studio Tip or Trick be sure to share it in the comments. I’ll compile a list and post it for everyone once there are enough.

PowerPoint: 31 Days of Visual Studio 2008 Tips & Tricks.pptx (Note: PowerPoint is updated daily to include new items.)


Friday, July 18, 2008 18:13:00 (Eastern Standard Time, UTC-05:00)  #    Comments [0]  |  Trackback
Thursday, July 17, 2008
image

Solutions have more and more projects these days, and projects have more and more files. If you are working on a large enterprise level line of business application then you really might want to consider today’s Visual Studio keyboard shortcut. Admit it, you’ve probably added hundreds of file using the mouse and massaging various Visual Studio menus and toolbars. But after today you will probably have a new, better way of doing the same thing. How cool is that?

Add New Item to Project

Ctrl + Shift + A

Note: The image above will take you to a full size image if you want to see this in more detail.

Feedback:

If you have a favorite Visual Studio Tip or Trick be sure to share it in the comments. I’ll compile a list and post it for everyone once there are enough.

PowerPoint: 31 Days of Visual Studio 2008 Tips & Tricks.pptx (Note: PowerPoint is updated daily to include new items.)


Thursday, July 17, 2008 18:46:00 (Eastern Standard Time, UTC-05:00)  #    Comments [0]  |  Trackback
Wednesday, July 16, 2008
image

So everyday you possibly write hundreds, maybe thousands, of lines of code. Some of them are perfect, and will continue on to have a long productive life. Others however will be found wanting.

It it for these inadequate lines of code that the delete line keyboard shortcut was designed to deal with. And deal with it does. Instead of having to select a line, or multiple lines, you can simple use the delete line shortcut and wipe away the current line, or the currently selected lines.

Delete Line

Ctrl + L

Note: The image above will take you to a full size image if you want to see this in more detail.

Feedback:

If you have a favorite Visual Studio Tip or Trick be sure to share it in the comments. I’ll compile a list and post it for everyone once there are enough.

PowerPoint: 31 Days of Visual Studio 2008 Tips & Tricks.pptx (Note: PowerPoint is updated daily to include new items.)


Wednesday, July 16, 2008 15:46:00 (Eastern Standard Time, UTC-05:00)  #    Comments [4]  |  Trackback
Tuesday, July 15, 2008

image

Visual Studio’s Object Browser is a powerful tool that can help developers to better “see” and understand their projects, and projects they may be working with.

Here’s what Visual Studio’s help says about it:

The Object Browser lets you select and examine the symbols available for use in projects. You can open the Object Browser from the View menu, or by clicking the Object Browser button on the main toolbar.

There are three panes: an Objects pane on the left, a Members pane on the upper right, and a Description pane on the lower right. If you resize the Object Browser into a single column, the Objects pane moves to the top, the Members pane to the middle, and the Description pane to the bottom.

View Object Browser

Ctrl + Alt + J

Note: The image above will take you to a full size image if you want to see this in more detail.

Feedback:

If you have a favorite Visual Studio Tip or Trick be sure to share it in the comments. I’ll compile a list and post it for everyone once there are enough.

PowerPoint: 31 Days of Visual Studio 2008 Tips & Tricks.pptx (Note: PowerPoint is updated daily to include new items.)


Tuesday, July 15, 2008 11:21:00 (Eastern Standard Time, UTC-05:00)  #    Comments [0]  |  Trackback
Monday, July 14, 2008
image

A great feature of Windows is the Alt + Tab navigator window. It allows user to quickly toggle between running applications. And Visual Studio has it’s equivalent of this Windows feature. This allows you to see and to navigate Active Tool Windows and Active Files. And you can see a thumbnail of the selected item.

 

Ctrl + Tab Navigator Window

Ctrl + Tab

Note: The image above will take you to a full size image if you want to see this in more detail.

Feedback:

If you have a favorite Visual Studio Tip or Trick be sure to share it in the comments. I’ll compile a list and post it for everyone once there are enough.

PowerPoint: 31 Days of Visual Studio 2008 Tips & Tricks.pptx (Note: PowerPoint is updated daily to include new items.)


Monday, July 14, 2008 18:48:00 (Eastern Standard Time, UTC-05:00)  #    Comments [2]  |  Trackback
Sunday, July 13, 2008

image

There is search, and then there is search. So in the beginning we had Quick Find: Ctrl + F. Quick Find worked fine, but wasn’t perfect. For one thing, Quick Find bring up a dialog that always automagically end up covering the most critical sections of your code, always. It has a LOT of options: where to look, match case, match whole word, search up, search hidden text, use regular expressions, and more. In other words, it is a bit unwieldy to use in simple day-to-day searches. I’m sure there are situations where people really need to have two-handed swords, but most of us are happy to make dinner with a simple kitchen knife.

That’s where the keyboard shortcut for incremental search comes in. It is great. No massive dialogs to get in the way. If you have already used Firefox’s incremental search feature then you are familiar with how easy and powerful this method is. If not, fire up Visual Studio now and give it a try. You have a real treat in store for you.

Incremental Search

Ctrl + I

Note: The image above will take you to a full size image if you want to see this in more detail.

Feedback:

If you have a favorite Visual Studio Tip or Trick be sure to share it in the comments. I’ll compile a list and post it for everyone once there are enough.

PowerPoint: 31 Days of Visual Studio 2008 Tips & Tricks.pptx (Note: PowerPoint is updated daily to include new items.)


Sunday, July 13, 2008 18:39:00 (Eastern Standard Time, UTC-05:00)  #    Comments [0]  |  Trackback
Saturday, July 12, 2008

imageIt is kind of funny how a feature that is easily argued as unnecessary and  superfluous can be a feature you find yourself using over and over. That’s exactly the kind of feature the Make Lowercase and Make Uppercase keyboard shortcuts are for Visual Studio. It might not be a feature you even use every day, but when you do finally end up needing this one it is such an incredibly useful feature.

Don’t believe me? How long would the following have taken to do by hand?

it is kind of funny how a feature that is easily argued as unnecessary and  superfluous can be a feature you find yourself using over and over. that’s exactly the kind of feature the make lowercase and make uppercase keyboard shortcuts are for visual studio. it might not be a feature you even use every day, but when you do finally end up needing this one it is such an incredibly useful feature.

IT IS KIND OF FUNNY HOW A FEATURE THAT IS EASILY ARGUED AS UNNECESSARY AND  SUPERFLUOUS CAN BE A FEATURE YOU FIND YOURSELF USING OVER AND OVER. THAT’S EXACTLY THE KIND OF FEATURE THE MAKE LOWERCASE AND MAKE UPPERCASE KEYBOARD SHORTCUTS ARE FOR VISUAL STUDIO. IT MIGHT NOT BE A FEATURE YOU EVEN USE EVERY DAY, BUT WHEN YOU DO FINALLY END UP NEEDING THIS ONE IT IS SUCH AN INCREDIBLY USEFUL FEATURE.

That’s the power of a good shortcut. Quick, simple, and powerful!

Make Lowercase

Ctrl + U

Make Uppercase

Ctrl + Shift + U

Note: The image above will take you to a full size image if you want to see this in more detail.

Feedback:

If you have a favorite Visual Studio Tip or Trick be sure to share it in the comments. I’ll compile a list and post it for everyone once there are enough.

PowerPoint: 31 Days of Visual Studio 2008 Tips & Tricks.pptx (Note: PowerPoint is updated daily to include new items.)