If you develop on Visual studio these shortcuts are a must for you:
- Comment:
Ctrl + K, Ctrl + C - UnComment:
Ctrl + K, Ctrl + U - Align the code properly:
Ctrl + K, Ctrl + D - Rename:
Ctrl + R, Ctrl + R - Extract Method:
Ctrl + R, Ctrl +M - Surround with:
Highlight the code, Then R-Click -> Surround with -> select the statement you need (for, while, do, ...) then hit Enter & enjoy. - Find Definition:
F12 - Auto-complete Syntax:While typing (for example: "for") we can hit "Tab" twice and visual studio will auto-complete the syntax for you. After that, by hitting on "Tab" it will keep navigating you between the arguments which you can edit.
- Duplicate Control:
At Designer view,
Press & Hold "Alt" then
with mouse click & drag the control to create a duplicate. - Debugging:
- Run With Debugging:
F5 - Stop Debugging
Shift + F5 - Insert Break Point
F9 - Step Over
F10
Execute the next line of code but not follow execution through any function calls - Step Into:
F11
Execute code one statement at a time, following execution into function calls - Step out:
Shift + F11
Execute the remaining lines of a function in which the current execution point lies.
- Run With Debugging:
- Build:
Ctrl + Shift + B
Soon I will Add Video shows above shortcuts and their out come.