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 |
| ctor | create constructor of a class |
| prop | create a property in a class |
| propfull | create a full property in a class |
| cw | Console.WriteLine(); |
| try | try & catch block |
| tryf | try and finally block |
| for | create for loop block |
| forr | To create for loop block with decrement |
| foreach | create foreach block |
| while | To create while loop block |
| do | To create do while loop block |
Shortcuts
| Shortcut | For what |
| Ctrl + KK | Book mark code line - to set or remove |
| Ctrl + KW | To view all book mark list (Book mark window) |
| Ctrl + KP | To go to book mark (To jump book mark) |
| Ctrl + KC | To comment code line or selected lines |
| Ctrl + KU | To uncomment code line or selected lines |
| Ctrl + A then Ctrl + KF | Format codes |
| Ctrl + -(minus) | Navigate backward |
| Ctrl + Shift + -(minus) | Navigate forward |
| Ctrl + KT | See method call hierarchy |
| Ctrl + RR | Rename variable name and all places wherever it is used (Select variable and then press key) |
| Ctrl + RG | Remove unnecessary using namespaces and sort them |
| Ctrl + MM | collapse/expand active code block |
| Ctrl + KS | Select any code snippet |
| Ctrl + Alt + A | Open command window |
| Ctrl + Alt + I | Oen Immediate window |
| Ctrl + Alt + P | Attach build process |
| Ctrl + Alt + X | Open Toolbox |
| Ctrl + Alt + L | Open Solution Explorer |
| Ctrl + Alt + S | Open Server Explorer |
| Ctrl + \ + S | Open SQL Server Object Explorer |
| Ctrl + \ + E | Open Error window |
| Ctrl + Tab | To change active tab window - goto next tab |
| Ctrl + Shift + Tab | To change active tab window - goto previous tab |
| Ctrl + F6 | To change active tab window and goto next tab |
| Ctrl + Shift + F6 | To change active tab window and goto previous tab |
| Ctrl + , (comma) | To open a navigate window to goto required file |
| Alt + Shift + C | Open Class view explorer |
| Alt + Shift + Enter | Set in full screen window or set in restored window |
| Ctrl + \ + M | Open Team Explorer |
| Alt + W + L | Close all open tabs |
| Ctrl + F4 | Close current tab |
| Alt + F11 | Run code analysis |
| Ctrl + N | Add new file |
| Ctrl + Shift + A | Add new Item |
| Alt +Shift + A | Add Existing item |
| Ctrl + Shift + B | Build solution |
| Ctrl + Shift + F9 | Delete all break points |
| Shift + F7 | Goto design view (for webform) |
| F7 | Goto code view (for webform) |
| F9 | To set/remove break point |
| F10 | Step Over (For debug) |
| F11 | Step Into (For debug) |
| F12 | Goto Defination |
Enjoy !!!
:)