There are quite a number of keyboard shortcuts available in Visual Studio, but of them all I only find some to be useful when developing. So without further ado here they are:
- Ctrl + Shift + b – To Build the solution
- F5 – To Build and run the solution in debug mode
- Ctrl +F5 – Run the solution in release mode
- F7 – When Viewing the .ASPX page hitting the F& key will take you to the code-behind
- F9 – Toggle a breakpoint
- Ctrl + Shift + s – This batch saves all files in the solution
- Alt + Shift + enter – This toggles the code fullscreen mode
- Ctrl + A – Selects all text
- F11 – Step Into
- F10 – Step Over
- Ctrl + z – Undo Change
- Ctrl + y – Re-do Change
- Ctrl + Shift + w – View in your default browser
- Ctrl + f – Find window
- Ctrl + r – Find and replace window
- Ctrl + g – Go to a line number
F3 Find
Ctrl + V (more than once retrive from clipboard)
if you want to put blocks of code in if, for , using …etc select the code then press ctrl + k +s then right the keyword such as if, for….
Thank you,
Ismail Al-Kiswani
Good advice, thanks for the tips!