且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Visual Studio C ++多行注释

更新时间:2023-01-14 14:34:38

您必须选择整行(即从该行的第一个字符开始),以便也将c ++注释用于多行。

You have to select the whole line (i.e. from the very first character of the line) in order to use c++ comments for multiple lines too.

更新:如果所选行之间有注释,请按Ctrl +即使选择不是从行首开始,K,Ctrl + C也会生成C ++样式的注释。

Update: if there are comments among the selected lines, Ctrl+K,Ctrl+C will generate C++ style comments even if the selection does not start from the beginning of the lines.