扩展区域将扩展 Visual Studio 中的子项 [英] Expanding a Region will expand children in Visual Studio

查看:24
本文介绍了扩展区域将扩展 Visual Studio 中的子项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个 ASP.NET Ajax 表单,并决定在一个页面中制作大部分站点,因为它不是一个非常复杂的站点(它更像是一个表单).在代码隐藏中,我通过向代码添加区域来使代码更有条理(内部是控件的点击事件等).

I am developing an ASP.NET Ajax form, and decided to make most of the site in one page, because it isn't a very involved site (it's more of a form). In the codebehind, I have been making my code more organized by adding regions to it (inside are the click events of the controls, etc).

当我展开一个区域时,所有的子程序和子区域都会被展开.Visual Studio 中是否有防止这种情况发生的选项?我希望能够扩展一个区域,然后扩展我想要编辑的区域或子程序,而不是收缩所有子程序和子区域,以防止我被我的胖代码分心.:)

When I expand a region, all the subroutines and child regions are expanded. Is there an option in Visual Studio to prevent this from happening? I'd like to be able to expand a region, and then expand the region or subroutine I'd like to edit, rather than contracting all the subroutines and child regions to prevent me from getting distracted by my fat code. :)

推荐答案

尝试键和弦":Ctrl+M、Ctrl+O,然后使用 Ctrl+M、Ctrl+M 一次展开一个.

Try the "key chord": Ctrl+M, Ctrl+O, then use Ctrl+M, Ctrl+M to expand one at a time.

>

虽然,我确实认为区域是邪恶的,你应该对胖代码做些什么;)

Although, I do think regions are evil, and you should do something about the fat code ;)

这篇关于扩展区域将扩展 Visual Studio 中的子项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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