Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/visual-studio-2012/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Visual studio 2012 dreamweaver cs6中是否有功能类似visual studio的区域标记?_Visual Studio 2012_Dreamweaver_Region - Fatal编程技术网

Visual studio 2012 dreamweaver cs6中是否有功能类似visual studio的区域标记?

Visual studio 2012 dreamweaver cs6中是否有功能类似visual studio的区域标记?,visual-studio-2012,dreamweaver,region,Visual Studio 2012,Dreamweaver,Region,在VisualStudio中,我们可以添加区域,这样我们就可以在类别中折叠和扩展我们的代码,这样当我们的代码太多行时,我就可以很容易地找到它,并且我们可以保持它整洁 例: dreamweaver中有这样的代码吗 *更新@NewBie-answer,不知道评论部分不能做一些换行lol 我就是这么做的 #region fields here is i keep all my public stuff #endregion #region events here is all of my event

在VisualStudio中,我们可以添加区域,这样我们就可以在类别中折叠和扩展我们的代码,这样当我们的代码太多行时,我就可以很容易地找到它,并且我们可以保持它整洁

例:

dreamweaver中有这样的代码吗

*更新@NewBie-answer,不知道评论部分不能做一些换行lol

我就是这么做的

#region fields
here is i keep all my public stuff
#endregion

#region events
here is all of my event
#endregion

#region methods
over here is all i keep my method
#endregion

只要尽量保持我的代码整洁,这样我就不必看到我不需要看到的东西,但我在NetBeans的最新版本中找到了这种方法,我从未尝试过旧版本。NetBeans的工作方式与visualstudio几乎相同,很酷,你必须尝试一下,哈哈哈,你不需要在Dreamweaver中使用代码/标记。选择要折叠的代码部分,然后单击左侧檐槽中的减号。您的代码将被折叠,Dreamweaver将记住这一点


您可以在“编辑”、“代码折叠”菜单中找到更多选项。例如,您可以通过选择collapse Full tag来折叠HTML标记及其子项。

但它仍然无法为我命名某个区域,例如:在visual studio中,我通常这样分开我的代码:这里的区域方法是我保存我的方法endregionregion字段是我保存我所有的公共内容endregion区域事件是我所有的事件endregion区域方法是我保存我的方法endregion只是试着保持我的代码整洁,所以我不必看到我不需要看到的东西,但我在NetBeans的最新版本中发现了这种方法,我从未尝试过旧版本。NetBeans几乎和VisualStudio做的一样,很酷,你必须尝试一下,哈哈哈
#region fields
here is i keep all my public stuff
#endregion

#region events
here is all of my event
#endregion

#region methods
over here is all i keep my method
#endregion