tJener
tJener

Reputation: 2619

Can I change how Visual Studio 2008 comments selection?

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?

Upvotes: 1

Views: 172

Answers (1)

Jay Riggs
Jay Riggs

Reputation: 53593

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

Upvotes: 1

Related Questions