What is your favorite Visual Studio keyboard shortcut? I'm always up for leaving my hands on the keyboard and away from the mouse!
One per answer please.
What is your favorite Visual Studio keyboard shortcut? I'm always up for leaving my hands on the keyboard and away from the mouse!
One per answer please.
My favorite: F12 (go to definition) and Shift+F12 (find references).
The latter is useful with F8 (go to next result).
Ctrl+- and Ctrl+Shift+- are mapped to my mouse's back and forwards buttons.
Ctrl+. is useful too, especially for adding event handlers and "using" statements.
Alt+Shift+arrow keys(←,↑,↓,→)
This allow you to select things in a block. Like you could select all of the "int" in the block and then search and replace to double for example.
Open and set focus in Solution Explorer: Ctrl+Alt+L
Ctrl+F10
run to cursor when debugging. Looked for this for ages before I found the keyboard shortcut...
Ctrl+M, O. Can collapse and expand all sections of code in a particular file.
Ctrl+K, Ctrl+C Comment a block
Ctrl+K, Ctrl+U Uncomment the block