C#隐藏和取消隐藏注释 [英] C# hide and unhide comments

查看:33
本文介绍了C#隐藏和取消隐藏注释的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图找到如何在 VS2010 中隐藏和取消隐藏评论的解决方案.我发现的是:

I am trying to find solution how to hide and unhide comments in VS2010. What i found is:

# region 
comments for code
#endregion

和:

http://holyhoehle.wordpress.com/2010/01/17/hide-comments-in-visual-studio/

但是这个在 VS2010 中不起作用或者我不知道如何...

but this one is not working in VS2010 or i don't know how to...

所以也许任何人都可以提供帮助并提供一些如何隐藏评论的解决方案,例如:

So maybe any one can help and offer some solution how to hide comments like:

string x = "...." //comment

推荐答案

我制作了一个 Visual Studio 扩展,允许您隐藏/显示评论.
你可以在这里得到它:

I made a Visual Studio extension that allows you to hide/show comments.
You can get it here:

适用于 Visual Studio 2010-2013
适用于 Visual Studio 2015-2017

这篇关于C#隐藏和取消隐藏注释的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆