Visual Studio has predefined shortcuts like Ctrl+K Ctrl+C for commenting and Ctrl+K Ctrl+U for uncommenting.