Need hotkey/button to comment out a block of code in Visual Studio 2008 Express

前端 未结 4 1459
梦谈多话
梦谈多话 2021-02-05 05:06

I\'m coming from Eclipse, working in Visual Studio 2008 Express and just want to highlight code, right-click and comment it out.

  • nothing in right-click
  • lo
相关标签:
4条回答
  • 2021-02-05 05:39

    Mauro is right about the shortcuts, they're in Express as well. You can also get to the Comment/Uncomment block commands in the Edit->Advanced menu. You probably also have a toolbar icon to do this that looks like a couple of lines, with a few indented blue ones.

    0 讨论(0)
  • 2021-02-05 05:48

    Weird it's Ctrl+E, C (Comment) and Ctrl+E, U (Uncomment)

    Normally It's Ctrl+K, C and Ctrl+K, U as Mauro says. Express Edition default (and only) keyboard mapping says otherwise.

    0 讨论(0)
  • 2021-02-05 05:53

    the key combination

    Comment    ctrl-k, ctrl-c
    uncomment  ctrl-k, ctrl-u
    

    Thats VS 2008, not sure if the express editions have the same thing.

    0 讨论(0)
  • 2021-02-05 05:55

    Visual Assist X also has better shortcuts for this:

    / - comment the block with //
    * - comment the block with /* */

    I'm not sure if it Visual Assist works with The express edition though

    0 讨论(0)
提交回复
热议问题