VS.NET 2003 collapsible text
-
In C# we have the collapsible (folding) text with the handy dandy #region directive to arbitrarily set a region to collapse. MS was nice enough to extend the folding abilities to C++ developers this time around, however, I don't seem to see any sort of equivalent to #region. Has anyone found this yet? Give me one more medicated peaceful moment
-
In C# we have the collapsible (folding) text with the handy dandy #region directive to arbitrarily set a region to collapse. MS was nice enough to extend the folding abilities to C++ developers this time around, however, I don't seem to see any sort of equivalent to #region. Has anyone found this yet? Give me one more medicated peaceful moment
I have been trying to search for this for a long time. Unluckily there is nothing. Meg Rules
-
I have been trying to search for this for a long time. Unluckily there is nothing. Meg Rules
#region/#endregion is so usefull in VC#. Large class files are easy to work on when you just collapse the bits that you are unlikely to want to view. Viva VS.NET!
"If you just say porn then you get all manner of chaff and low grade stuff."
- Paul Watson, Lounge 25 Mar 03
"But a fresh install - it's like having clean sheets"
- C. Maunder Lounge 3 Mar '03
Jonathan 'nonny' Newman Homepage [www.nonny.com] [^]
-
In C# we have the collapsible (folding) text with the handy dandy #region directive to arbitrarily set a region to collapse. MS was nice enough to extend the folding abilities to C++ developers this time around, however, I don't seem to see any sort of equivalent to #region. Has anyone found this yet? Give me one more medicated peaceful moment
I haven't found one, and there definately wasn't one for the 2002 release. Someone should let the good folk over at Whole Tomato know to they can add support for: //#region //#endregion into Visual Assist.NET.
David Wulff
"i said no to noddy like 20 times but in the end i just couldnt say no to him anymore" - Wishful Thinking
-
#region/#endregion is so usefull in VC#. Large class files are easy to work on when you just collapse the bits that you are unlikely to want to view. Viva VS.NET!
"If you just say porn then you get all manner of chaff and low grade stuff."
- Paul Watson, Lounge 25 Mar 03
"But a fresh install - it's like having clean sheets"
- C. Maunder Lounge 3 Mar '03
Jonathan 'nonny' Newman Homepage [www.nonny.com] [^]
Jonny Newman wrote: #region/#endregion is so usefull in VC#. Large class files are easy to work on... I have decided that I can't stand them, even after creating keyboard shortcuts to collaps and uncollapse them. They just get in the way, and their a poor replacement for what C# should really support, which is the ability to have class methods defined across several files like you can do in C++. Marc Help! I'm an AI running around in someone's f*cked up universe simulator.
Sensitivity and ethnic diversity means celebrating difference, not hiding from it. - Christian Graus
Every line of code is a liability - Taka Muraoka
Microsoft deliberately adds arbitrary layers of complexity to make it difficult to deliver Windows features on non-Windows platforms--Microsoft's "Halloween files" -
Jonny Newman wrote: #region/#endregion is so usefull in VC#. Large class files are easy to work on... I have decided that I can't stand them, even after creating keyboard shortcuts to collaps and uncollapse them. They just get in the way, and their a poor replacement for what C# should really support, which is the ability to have class methods defined across several files like you can do in C++. Marc Help! I'm an AI running around in someone's f*cked up universe simulator.
Sensitivity and ethnic diversity means celebrating difference, not hiding from it. - Christian Graus
Every line of code is a liability - Taka Muraoka
Microsoft deliberately adds arbitrary layers of complexity to make it difficult to deliver Windows features on non-Windows platforms--Microsoft's "Halloween files"Marc Clifton wrote: which is the ability to have class methods defined across several files like you can do in C++. MS says that the next version of VS.NET (VS.NET 2004?) will have it, along with templates, and more bells and whistles; This also helps when you want to create code generators and let the code generator implement part of a class and the programmer the other part. A sample one is the form designer, which puts that ugly "do not touch here or you'll die" region in the middle of your code. If, at least .NET supported multiple inheritance, we could split the implementation between two or more files when the class implementation becomes too big.
It's not the fall that kills you: it's the sudden stop - Down by Law, Jim Jamursch (1986)
-
Marc Clifton wrote: which is the ability to have class methods defined across several files like you can do in C++. MS says that the next version of VS.NET (VS.NET 2004?) will have it, along with templates, and more bells and whistles; This also helps when you want to create code generators and let the code generator implement part of a class and the programmer the other part. A sample one is the form designer, which puts that ugly "do not touch here or you'll die" region in the middle of your code. If, at least .NET supported multiple inheritance, we could split the implementation between two or more files when the class implementation becomes too big.
It's not the fall that kills you: it's the sudden stop - Down by Law, Jim Jamursch (1986)
Daniel Turini wrote: MS says that the next version of VS.NET (VS.NET 2004?) will have it Nothing like delivering a half completed product, is there? Keeps those MSDN subscriptions current and bucks rolling in, huh? Where's the damn competition when you need it? This is nothing more than a parsing issue! Oh, but wait. There's Intellisense. Or whatever it's called. The thing that keeps popping up with "try again in a few minutes after the system has loaded 50 megabytes worth of stuff" and the thing that gets in the way when I'm editing code, so I have to hit the damn ESC key because I can't get out of the popup window that has 20 different constructor options that I'm perpetually stuck scrolling through with the down arrow. I do believe I'm about to nuke that feature of the IDE. Daniel Turini wrote: This also helps when you want to create code generators Why do I get the impression that this is where programming is heading. Ummm. Again. (I remember going to some expo is SF when I was about 20, and some guy had a BASIC code generator that was supposed to mark the end of manual programming. That was 20 years ago. Here we go again, it seems. Oh, but wait! There's XML!!! :laugh: ) Daniel Turini wrote: If, at least .NET supported multiple inheritance, we could split the implementation between two or more files :rolleyes: Now there's the best use for multiple inheritence that I've heard of! Take that, you Java dogs! (OK, I'm in a flippant mood today). Marc Help! I'm an AI running around in someone's f*cked up universe simulator.
Sensitivity and ethnic diversity means celebrating difference, not hiding from it. - Christian Graus
Every line of code is a liability - Taka Muraoka
Microsoft deliberately adds arbitrary layers of complexity to make it difficult to deliver Windows features on non-Windows platforms--Microsoft's "Halloween files" -
I haven't found one, and there definately wasn't one for the 2002 release. Someone should let the good folk over at Whole Tomato know to they can add support for: //#region //#endregion into Visual Assist.NET.
David Wulff
"i said no to noddy like 20 times but in the end i just couldnt say no to him anymore" - Wishful Thinking
David Wulff wrote: Someone should let the good folk over at Whole Tomato know... Consider them advised. cheers, Chris Maunder
-
Daniel Turini wrote: MS says that the next version of VS.NET (VS.NET 2004?) will have it Nothing like delivering a half completed product, is there? Keeps those MSDN subscriptions current and bucks rolling in, huh? Where's the damn competition when you need it? This is nothing more than a parsing issue! Oh, but wait. There's Intellisense. Or whatever it's called. The thing that keeps popping up with "try again in a few minutes after the system has loaded 50 megabytes worth of stuff" and the thing that gets in the way when I'm editing code, so I have to hit the damn ESC key because I can't get out of the popup window that has 20 different constructor options that I'm perpetually stuck scrolling through with the down arrow. I do believe I'm about to nuke that feature of the IDE. Daniel Turini wrote: This also helps when you want to create code generators Why do I get the impression that this is where programming is heading. Ummm. Again. (I remember going to some expo is SF when I was about 20, and some guy had a BASIC code generator that was supposed to mark the end of manual programming. That was 20 years ago. Here we go again, it seems. Oh, but wait! There's XML!!! :laugh: ) Daniel Turini wrote: If, at least .NET supported multiple inheritance, we could split the implementation between two or more files :rolleyes: Now there's the best use for multiple inheritence that I've heard of! Take that, you Java dogs! (OK, I'm in a flippant mood today). Marc Help! I'm an AI running around in someone's f*cked up universe simulator.
Sensitivity and ethnic diversity means celebrating difference, not hiding from it. - Christian Graus
Every line of code is a liability - Taka Muraoka
Microsoft deliberately adds arbitrary layers of complexity to make it difficult to deliver Windows features on non-Windows platforms--Microsoft's "Halloween files"Sounds like you need to find an new profession. X|
-
In C# we have the collapsible (folding) text with the handy dandy #region directive to arbitrarily set a region to collapse. MS was nice enough to extend the folding abilities to C++ developers this time around, however, I don't seem to see any sort of equivalent to #region. Has anyone found this yet? Give me one more medicated peaceful moment
With VC++.NET, outlining is explicitely managed using the context menu. There is no equivalent to the C# #region keyword. And Visual Assist.NET doesn't bring this feature either.
-
With VC++.NET, outlining is explicitely managed using the context menu. There is no equivalent to the C# #region keyword. And Visual Assist.NET doesn't bring this feature either.
-
The VB macro used to track //#region //#end region sections is a smart workaround. Congrats! :) It remains probably static : from the VB code I believe that if you update the source code within the outlined section, then you have to apply the macro again.
-
In C# we have the collapsible (folding) text with the handy dandy #region directive to arbitrarily set a region to collapse. MS was nice enough to extend the folding abilities to C++ developers this time around, however, I don't seem to see any sort of equivalent to #region. Has anyone found this yet? Give me one more medicated peaceful moment
A bit OT but does anyone know the hot key for opening and closing regions? I get frustrated when I am scrolling down with the keyboard and then have to switch to the mouse to open the region. ta
Paul Watson
Bluegrass
Cape Town, South AfricaMacbeth muttered: I am in blood / Stepped in so far, that should I wade no more, / Returning were as tedious as go o'er Shog9: Paul "The human happy pill" Watson
-
A bit OT but does anyone know the hot key for opening and closing regions? I get frustrated when I am scrolling down with the keyboard and then have to switch to the mouse to open the region. ta
Paul Watson
Bluegrass
Cape Town, South AfricaMacbeth muttered: I am in blood / Stepped in so far, that should I wade no more, / Returning were as tedious as go o'er Shog9: Paul "The human happy pill" Watson
Ctrl + M, M I live to serve :) Notorious SMC
The difference between the almost-right word & the right word is a really large matter - it's the difference between the lightning bug and the Lightning Mark Twain
Get your facts first, and then you can distort them as much as you please Mark Twain -
In C# we have the collapsible (folding) text with the handy dandy #region directive to arbitrarily set a region to collapse. MS was nice enough to extend the folding abilities to C++ developers this time around, however, I don't seem to see any sort of equivalent to #region. Has anyone found this yet? Give me one more medicated peaceful moment
SteveKing has written an Addin which does the collapsing for VC++: http://www.codeproject.com/macro/KingsTools.asp[^] Regards Thomas
Disclaimer:
Because of heavy processing requirements, we are currently using some of your unused brain capacity for backup processing. Please ignore any hallucinations, voices or unusual dreams you may experience. Please avoid concentration-intensive tasks until further notice. Thank you. -
Sounds like you need to find an new profession. X|
Topper Price wrote: Sounds like you need to find an new profession Know thy enemy. Marc Help! I'm an AI running around in someone's f*cked up universe simulator.
Sensitivity and ethnic diversity means celebrating difference, not hiding from it. - Christian Graus
Every line of code is a liability - Taka Muraoka
Microsoft deliberately adds arbitrary layers of complexity to make it difficult to deliver Windows features on non-Windows platforms--Microsoft's "Halloween files" -
Sounds like you need to find an new profession. X|
Topper Price wrote: Sounds like you need to find an new profession. Oh, you'll learn that programmers love to make the same mistakes again and again.
It's not the fall that kills you: it's the sudden stop - Down by Law, Jim Jamursch (1986)
-
Daniel Turini wrote: MS says that the next version of VS.NET (VS.NET 2004?) will have it Nothing like delivering a half completed product, is there? Keeps those MSDN subscriptions current and bucks rolling in, huh? Where's the damn competition when you need it? This is nothing more than a parsing issue! Oh, but wait. There's Intellisense. Or whatever it's called. The thing that keeps popping up with "try again in a few minutes after the system has loaded 50 megabytes worth of stuff" and the thing that gets in the way when I'm editing code, so I have to hit the damn ESC key because I can't get out of the popup window that has 20 different constructor options that I'm perpetually stuck scrolling through with the down arrow. I do believe I'm about to nuke that feature of the IDE. Daniel Turini wrote: This also helps when you want to create code generators Why do I get the impression that this is where programming is heading. Ummm. Again. (I remember going to some expo is SF when I was about 20, and some guy had a BASIC code generator that was supposed to mark the end of manual programming. That was 20 years ago. Here we go again, it seems. Oh, but wait! There's XML!!! :laugh: ) Daniel Turini wrote: If, at least .NET supported multiple inheritance, we could split the implementation between two or more files :rolleyes: Now there's the best use for multiple inheritence that I've heard of! Take that, you Java dogs! (OK, I'm in a flippant mood today). Marc Help! I'm an AI running around in someone's f*cked up universe simulator.
Sensitivity and ethnic diversity means celebrating difference, not hiding from it. - Christian Graus
Every line of code is a liability - Taka Muraoka
Microsoft deliberately adds arbitrary layers of complexity to make it difficult to deliver Windows features on non-Windows platforms--Microsoft's "Halloween files"Marc Clifton wrote: Why do I get the impression that this is where programming is heading. Ummm. Again. (I remember going to some expo is SF when I was about 20, and some guy had a BASIC code generator that was supposed to mark the end of manual programming. That was 20 years ago. Here we go again, it seems. Oh, but wait! There's XML!!! ) I remember all those Clipper and DBase III code generators. I remember Genexus (hey, they are still alive and have a website!): define your forms and reports and Genexus generate the C++/Clipper/Basic code and a normalized database for you! People love to do the same mistakes again and again...
It's not the fall that kills you: it's the sudden stop - Down by Law, Jim Jamursch (1986)
-
In C# we have the collapsible (folding) text with the handy dandy #region directive to arbitrarily set a region to collapse. MS was nice enough to extend the folding abilities to C++ developers this time around, however, I don't seem to see any sort of equivalent to #region. Has anyone found this yet? Give me one more medicated peaceful moment
This is a feature we have planned for a future release; it will likely be implemented as "#pragma region". It didn't make the cut for 2003 (Everett). Nick This posting is provided “AS IS” with no warranties, and confers no rights. You assume all risk for your use. © 2003 Microsoft Corporation. All rights reserved.
-
Ctrl + M, M I live to serve :) Notorious SMC
The difference between the almost-right word & the right word is a really large matter - it's the difference between the lightning bug and the Lightning Mark Twain
Get your facts first, and then you can distort them as much as you please Mark TwainNotorious SMC wrote: Ctrl + M, M Gee, thanks Notorious. Pressing Ctrl + M deletes the current line, and if that current line happens to be a hidden region it deletes the whole region. Like back on IRC when us ops used to tell annoying newbies that if they pressed Alt+F4 they could get op statues. :-D
Paul Watson
Bluegrass
Cape Town, South AfricaMacbeth muttered: I am in blood / Stepped in so far, that should I wade no more, / Returning were as tedious as go o'er Shog9: Paul "The human happy pill" Watson