Important Shortcut Keys For Visual Studio 2022
| Hotkey | Function | 
|---|---|
| F5 | Run/Debug program | 
| F9 | Set/Remove breakpoint at current line | 
| F10 | Step over - Execute current line and move to next one | 
| F11 | Step into - Go inside a method call | 
| Ctrl+K, Ctrl+C | Comment selected lines | 
| Ctrl+K, Ctrl+U | Uncomment selected lines | 
| Ctrl+K, Ctrl+D | Format document | 
| Ctrl+Space | Show IntelliSense completion list | 
| Alt+Up/Down | Move current line up/down | 
| Ctrl+Shift+B | Build solution | 
| Ctrl+M, Ctrl+M | Toggle expand/collapse current code block | 
| Ctrl+K, Ctrl+S | Surround with code snippet | 
| Ctrl+. | Show Quick Actions and refactorings | 
| Ctrl+R, Ctrl+R | Rename symbol | 
| Ctrl+K, Ctrl+X | Insert snippet | 
| Ctrl+- | Navigate backward | 
| Ctrl+Shift+- | Navigate forward | 
| Ctrl+Tab | Switch between open documents | 
| Ctrl+F | Find | 
| Ctrl+H | Replace |