|
-
May 11th, 2012, 10:02 AM
#1
Thread Starter
Addicted Member
[RESOLVED] Rename a minimized block of code
The question is simple. I minimize a block of code, and instead of the text inside the rectangle being "..." I need to write smth of my own. I knew how to do it some long time ago, but I've forgotten it now.
-
May 11th, 2012, 10:12 AM
#2
Re: Rename a minimized block of code
-
May 11th, 2012, 10:14 AM
#3
Thread Starter
Addicted Member
Re: Rename a minimized block of code
Instead of the three dots over there, I need to write something of my own, so I know what the code within it does.
-
May 11th, 2012, 10:15 AM
#4
Hyperactive Member
Re: Rename a minimized block of code
I think what you're wanting to do is create a region.
Code:
#Region "Your Text Here"
Code
#End Region
Then when you collapse the region, you'll see "YOUR TEXT HERE" inside the rectangle.
-
May 11th, 2012, 10:16 AM
#5
Hyperactive Member
Re: Rename a minimized block of code
Code:
#Region "Name Me"
subs n stuffs goes here
#Region
I have been beaten by the swiftness.
-
May 11th, 2012, 10:21 AM
#6
Re: Rename a minimized block of code
You can also make an XML comment that will show up when minimized.
Code:
'''<summary>
''' This is a multiline comment
''' I want to show when minimized
'''</summary>
'''<summary>Here's some more minimized text</summary>
This pattern in common to all great programmers I know: they're not experts in something as much as experts in becoming experts in something.
The best programming advice I ever got was to spend my entire career becoming educable. And I suggest you do the same.
-
May 11th, 2012, 10:33 AM
#7
Thread Starter
Addicted Member
Re: Rename a minimized block of code
 Originally Posted by samuelk
I think what you're wanting to do is create a region.
Code:
#Region "Your Text Here"
Code
#End Region
Then when you collapse the region, you'll see "YOUR TEXT HERE" inside the rectangle.
Yap, that's what I was talking about. Sad it doesn't work within subs, but still useful in other areas, so thanks to you and to all the other replies.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|