开发者

Can I change how Visual Studio 2008 comments selection?

开发者 https://www.devze.com 2022-12-24 20:24 出处:网络
I know that C-k C-c comments a selection, and currently it works as thus in C++: AwesomeCode(); MoreAwesomeCode();

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

0

精彩评论

暂无评论...
验证码 换一张
取 消