- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi there,
a small but useful feature in VB.NET is the use of the #Region - #End Region directive which automatically outlines the enclosing code.
In IVF I find myself always outlining certain parts of the code by hand (which gets lost whenever something crashes).
While the newly introduced automatic outlining is great, an IVF analogue of the #Region derictive would be a nice addendum.
Anything planned regarding this for the VS2011 version?
And while I'm at it, something like "individual color definitions for custom comments" would be nice, so that comments starting with !$OMP (or comments starting with !#BLA) can have a different color than the default comment color.
Cheers -Ralf
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I was unfamiliar with the VB feature and we don't have anything like that planned at this time. I agree that different colors for directives would be nice and will suggest that to the developers.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Ralf,
Try:
! { you region comments here
... your region code here
! } end your region comment here
Then at least in VS you can Ctrl-} to jump from begin to end of region (assuming {}'s are matched properly). If you use the same prefix in the {} comments then it is easy(-er) to find misplaced {}'s
! { FOOBAR Begin
... your region code here
! } FOOBAR End
Jim Dempsey
Try:
! { you region comments here
... your region code here
! } end your region comment here
Then at least in VS you can Ctrl-} to jump from begin to end of region (assuming {}'s are matched properly). If you use the same prefix in the {} comments then it is easy(-er) to find misplaced {}'s
! { FOOBAR Begin
... your region code here
! } FOOBAR End
Jim Dempsey

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page