A cacophony of ramblings from my potpourri of notes
|
Subscribe
| |  |
Search
Categories
On this page...
| January, 2009 (4) |
| December, 2008 (4) |
| November, 2008 (2) |
| October, 2008 (2) |
| September, 2008 (4) |
| August, 2008 (2) |
| July, 2008 (3) |
| June, 2008 (9) |
| May, 2008 (3) |
| December, 2007 (1) |
| October, 2007 (1) |
| August, 2007 (1) |
| July, 2007 (1) |
| June, 2007 (3) |
| April, 2007 (3) |
| February, 2007 (4) |
| January, 2007 (1) |
| December, 2006 (1) |
| November, 2006 (3) |
| October, 2006 (5) |
| September, 2006 (4) |
| August, 2006 (4) |
| July, 2006 (6) |
| May, 2006 (1) |
| March, 2006 (1) |
| February, 2006 (7) |
| January, 2006 (1) |
| November, 2005 (4) |
| October, 2005 (7) |
| September, 2005 (7) |
| August, 2005 (7) |
| July, 2005 (9) |
| June, 2005 (12) |
| May, 2005 (3) |
| April, 2005 (8) |
| March, 2005 (8) |
| February, 2005 (10) |
| January, 2005 (3) |
| December, 2004 (4) |
| November, 2004 (1) |
| September, 2004 (4) |
| August, 2004 (1) |
| July, 2004 (1) |
| June, 2004 (8) |
| May, 2004 (5) |
| April, 2004 (16) |
| March, 2004 (7) |
| February, 2004 (13) |
| January, 2004 (16) |
| December, 2003 (17) |
| November, 2003 (13) |
| October, 2003 (13) |
| September, 2003 (30) |
| August, 2003 (33) |
| July, 2003 (66) |
| June, 2003 (29) |
| May, 2003 (48) |
| April, 2003 (83) |
| March, 2003 (26) |
| February, 2003 (23) |
| January, 2003 (31) |
| December, 2002 (14) |
| November, 2002 (19) |
| October, 2002 (13) |
|

Friday, January 23, 2009
Visual Studio Keyboard Shortcuts Wrap-up (MSDN Flash - Feb. 2, 2009)
In this edition, I am going to wrap up a few loose ends with a selection of miscellaneous keyboard shortcuts and links to a summary keyboard shortcut poster.
Debugging:
I realize that none of you would write bugs, but in case you meet someone that does or perhaps on occasion you need to debug some code in order to explain a complex algorithm, here are some invaluable debugging keyboard shortcuts.
- F9 and CTRL+F9
F9 creates or removes a breakpoint based on the cursor's current location. CTRL+F9 toggles whether a breakpoint is enabled or not. - F5, CTRL+F5 and SHIFT+F5
CTRL+F5 launches the application or begins running the tests. If there are multiple projects in the solution, which project is launched depends on the solution's configured startup project. Using F5 will launch the application in debug mode. After encountering a breakpoint, F5 will continue execution until the next break point. SHIFT+F5 will stop the application from debugging all together. - F10, F11 and SHIFT+F11
Executes the next statement one method at a time. If not currently at a breakpoint, debugging will start at the first statement. F10 will execute the method without following execution into the method. In contrast, F11 will step into the method, allowing you to debug it line by line (assuming you have the source code). SHIFT+F11 executes all remaining statements within the currently executing method, allowing you to jump out of a particular call rather than stepping over each line. - CTRL+ALT+I
Displays the Immediate Window. Used when debugging a method, this window allows you to write code (frequently with intellisense) and evaluate/evaluate the code line by line as though it was inline within the method you are debugging. I find it extremely helpful when learning about a new .NET API. After instantiating a particular type, I can examine various members on the type and learn more about their behavior.
Adding files to Project
- SHIFT+ALT+C
Displays the Add New Item dialog with the Class template selected. Initially I wanted this to work without the dialog but I need to supply the class/file name and there are no additional keystrokes to placing it in the dialog. - SHIFT+ALT+A
Displays the dialog for adding an existing item to the project.
Summary
As I wrote this series, I was amazed at how frequently I still found myself forgetting some of the new keyboard shortcuts I learned while writing (CTRL+Break to stop a build). Fortunately, there are posters available with many of the top shortcuts listed. I recommend using one as a mouse pad for a few months so that you can get them down.
This ends the series on Visual Studio Keyboard Shortcuts. Next I plan to start a series on the Entity Framework.
Friday, January 23, 2009 7:23:22 AM (Pacific Standard Time, UTC-08:00)
Computer Related | .Net | Headlines