Visual Studio中 - 提高code折叠 [英] Visual Studio - Improving Code Folding

查看:286
本文介绍了Visual Studio中 - 提高code折叠的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有任何选项(第三方或其他方式),以改善内code折叠在源代码编辑器对HTML / ASP.Net

Are there any options (third-party or otherwise) to improve code folding within the Source Editor for HTML/ASP.Net?

在#地区指令可以更容易地创建自己的节,但它不能在源代码编辑器工作。理想情况下,我想离开折叠更大code区域比服务器端code块之间。但下面显示会发生什么......

The #region directive makes it easier to create your own sections, but it doesn't work in the Source Editor. Ideally I'd like to fold away larger areas of code than between the server-side code blocks. But below shows what happens...

<% // Search Results Section            <-- Just want folding here

   foreach (int item in list) { %>  <-- but it is here also
       Number : <% =item %>
   <% }        

   //etc...
%>

code折叠落在之间&LT;%和%>这是不是真的,我想它。我试图让code的部分。

Code folding falls between <% and %> which isn't really where I want it. I'm trying to get sections of code.

推荐答案

我被你猜例如你正在寻找某种ASP.Net标记code折叠的解决方案。 VS 2008专业版(不能确定你的版本)可以让你折叠标签通过企业服务器标签上下文菜单(右键单击)或标记了突出部分。

I'm guessing by your example you are looking for some sort of ASP.Net Markup code folding solution. VS 2008 Pro (unsure as to your version) will allow you to "Collapse Tags" via context menu (right-click) on a server tag or highlighted section of mark up.

这篇关于Visual Studio中 - 提高code折叠的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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