Thursday, March 25, 2010

Visual studio 2008 shortcuts

Visual studio 2008 shortcuts

CTRL + ".": same as CTRL + SHIFT + F10 opens the smart tag window and allows you to add Using statements Or implement interfaces

ALT + CTRL + "e": open the Exceptions window

CTRL + "k" + "f" and CRTL + "k" + "d": these two will format the code in the window to be nicely indented. Using "d" will format all the document while using "f" will format only selected text. The formatting is for all types of documents, HTML, Xaml, XML, C#… This one is my favorite.

SHIFT + Del: cut the entire row from the document and past it to the clipboard.

CTRL + "k" + "c" and CTRL + "k" + "u": These two are for commenting selected text (the "c" options) and uncommenting selected text (the "u" option).

ALT + ENTER: this little shortcut will open up the Properties window

CTRL + "k" + "s": opens up the code snippets dialogue within the code

F12: I think you all know this but still F12 is the shortcut for the "Go to definition" command which will take you to the definition of the object your marker is currently on.

F9: add a breakpoint to the code line your marker is currently at. Clicking F9 again will remove this breakpoint from that line.

CTRL + ALT + "q": This one will open the Quick watch window

Ctrl+K, Ctrl+F - Format selected block of code

Ctrl+Shift+B -Build solution


References

http://www.dev102.com/2008/04/17/10-visual-studio-shortcuts-you-must-know/

http://www.85turns.com/2008/07/03/favorite-visual-studio-2008-keyboard-shortcuts-2/

Friday, March 5, 2010

Get an alert from TFS when a work item is assigned to you(me)


Thanks to :Jan Tanis (http://blog.jantanis.net/2009/09/work-item-email-notification-with-team.html)


How to setup email notification on having assigned a Work Item to you?

1. Download and install Team Foundation Power Tool for Visual Studio @ http://www.microsoft.com/downloads/details.aspx?FamilyId=FBD14EEA-781F-45A1-8C46-9F6BA2F68BF0&displaylang=en#filelist

2. Start Visual Studio and open the Alert Editor

3. Add new Alert -> Work Item alert -> A Work Item was assigned to me

4. Change your name in “Send To” to your current email address

5. Collapse Work Items Alerts to ensure saving (workaround to start saving procedure)

6. DONE!