I know that C-k C-c comments a selection, and currently it works as thus in C++:
AwesomeCode();
MoreAwesomeCode();
//AwesomeCode();
//MoreAwesomeCode();
However, I would like it开发者_高级运维 to comment it as such:
// AwesomeCode();
// MoreAwesomeCode();
Is this possible?
Create a Visual Studio macro and define your own block comment string, in this case two forward slashes followed by a space. Here's a codeguru.com that might help you get started:
Block Comment Macro for Visual Studio .NET
精彩评论