这有可能使"If Then Else"崩溃吗?作为方法? [英] Is this possible to collapse "If Then Else" as methods?

查看:33
本文介绍了这有可能使"If Then Else"崩溃吗?作为方法?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以像使用方法一样在Visual Studio 2010中折叠代码块(如"if ... endif")?

Is it possible to collapse blocks of the code (like "if ... endif") in Visual Studio 2010 as it can be done with methods?

推荐答案

是的.选择代码,然后按 Ctrl + M,Ctrl + H (在默认配置中)

yes, it is. Select the code, then hit Ctrl+M,Ctrl+H (in the default config)

或者,右键单击并转到大纲->隐藏选择.

alternatively, right-click and go to Outlining -> Hide Selection.

在此 MSDN 功能非常强大,这显然不适用于Visual Basic代码.

Here's MSDN on this very feature, which apparently is not available for Visual Basic code.

这篇关于这有可能使"If Then Else"崩溃吗?作为方法?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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