views:

42

answers:

1

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?

+1  A: 

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

Jay Riggs