开发者

Put a title on collapsed outlining in Visual Basic Express 2010

开发者 https://www.devze.com 2023-01-05 21:35 出处:网络
When I select an area of text in Visual Basic Express 2010 and then go click Edit/Outlining/Hide Selection; the area collapses and is represented by three dots like \"...\". Is there a way to put my o

When I select an area of text in Visual Basic Express 2010 and then go click Edit/Outlining/Hide Selection; the area collapses and is represented by three dots like "...". Is there a way to put my own t开发者_开发技巧itle, description or label on it for better meaning and communication?


Have you tried using the Region tag?

Public Class SomeClass
+   #Region "my special description for Foo"

        Public Sub Foo
            ''# process crap here
        End Sub
    #End Region

+   #Region "a different description for Bar"

        Public Sub Bar
            ''# process crap here
        End Sub
    #End Region
End Class

Once you add a "Region" to your code, you can then collapse it and the description stays visible.

0

精彩评论

暂无评论...
验证码 换一张
取 消