Search code examples
visual-studio-2008commentskeyboard-shortcuts

Keyboard shortcut to comment/uncomment selected code in VS2008


In Visual Studio 2008, is there a keyboard shortcut to comment/uncomment selected lines of code?


Solution

    • CTRL + K, followed by CTRL + C for commenting
    • CTRL + K, followed by CTRL + U for uncommenting

    For more good stuff, check Favorite Visual Studio keyboard shortcuts.