Visual Studio /**/ comment shortcut?

前端 未结 8 2446
长发绾君心
长发绾君心 2021-02-01 01:53

I want to know how to put the /**/ comments through shortcut. I know the Ctrl+K+C shortcut for the // comments but it comments the whole lin

8条回答
  •  没有蜡笔的小新
    2021-02-01 02:08

    To comment a block of code (more than one line) in VS select code with ALT (alt+mouse or alt+shift+arrows), and then comment with Ctrl+K Ctrl+C. With one line code only you don't need ALT.

    So it's basically the same as with // comments, only ALT needs to be pressed while selecting code for more lines than one.

提交回复
热议问题