Do Fast Productivity - Visual Studio Shortcuts

Do Fast Productivity - Visual Studio Shortcuts


To improve your development productivity while you are using visual studio, I believe that we all need to use shortcuts which are already provided by Microsoft Visual Studio inbuilt. 

Here, I have listed our some most useful code snippets and shortcuts. I hope, it will very useful to improve your development.


Code Snippets


Code Snippest
ctorcreate constructor of a class
propcreate a property in a class
propfullcreate a full property in a class
cwConsole.WriteLine();
trytry & catch block
tryftry and finally block
forcreate for loop block
forrTo create for loop block with decrement
foreachcreate foreach block
whileTo create while loop block
do To create do while loop block


Shortcuts



ShortcutFor what
Ctrl + KKBook mark code line - to set or remove
Ctrl + KWTo view all book mark list (Book mark window)
Ctrl + KPTo go to book mark (To jump book mark)
Ctrl + KCTo comment code line or selected lines
Ctrl + KUTo uncomment code line or selected lines
Ctrl + A then Ctrl + KFFormat codes
Ctrl + -(minus)Navigate backward
Ctrl + Shift + -(minus)Navigate forward
Ctrl + KTSee method call hierarchy
Ctrl + RRRename variable name and all places wherever it is used (Select variable and then press key)
Ctrl + RGRemove unnecessary using namespaces and sort them
Ctrl + MMcollapse/expand active code block
Ctrl + KSSelect any code snippet
Ctrl + Alt + AOpen command window
Ctrl + Alt + IOen Immediate window
Ctrl + Alt + PAttach build process
Ctrl + Alt + XOpen Toolbox
Ctrl + Alt + LOpen Solution Explorer
Ctrl + Alt + SOpen Server Explorer
Ctrl + \ + SOpen SQL Server Object Explorer
Ctrl + \ + EOpen Error window
Ctrl + TabTo change active tab window - goto next tab
Ctrl + Shift + TabTo change active tab window - goto previous tab
Ctrl + F6To change active tab window and goto next tab
Ctrl + Shift + F6To change active tab window and goto previous tab
Ctrl + , (comma)To open a navigate window to goto required file
Alt + Shift + COpen Class view explorer
Alt + Shift + EnterSet in full screen window or set in restored window
Ctrl + \ + MOpen Team Explorer
Alt + W + LClose all open tabs
Ctrl + F4Close current tab
Alt + F11Run code analysis
Ctrl + NAdd new file
Ctrl + Shift + AAdd new Item
Alt +Shift + AAdd Existing item
Ctrl + Shift + BBuild solution
Ctrl + Shift + F9 Delete all break points
Shift + F7Goto design view (for webform)
F7Goto code view (for webform)
F9To set/remove break point
F10Step Over (For debug)
F11Step Into (For debug)
F12Goto Defination

Enjoy !!!

:)

No comments:

Post a Comment