Here's a linkhttp://msdn.microsoft.com/en-us/library/b6xkz944%28v=vs.80%29.aspxbut it doesn't help you understand what it does.In .NET you can sprinkle #region / #endregion throughout your classes. You may ask why would I want to do this. The answer is it helps with removing clutter. When you open a class without regions you just have a bunch of functions. With regions you can group functions together into logical groups and best of all, collapse whole regions down to a single line. In .NET you can nest regions within regions so you can categorise further.As an example I would wrap all functions connected with construction (constructors, setup code etc) in one region. Getters / setters in another. Remaining public methods and private methods each go in their own region. So if I was working on some internal feature of the class I'd collapse all regions except the one holding all my private functions.You probably have to be more of a programmer than a hobbyist to really want this. TBH I'd suggest the OP try using Visual Studio and the excellent VisualMicro plugin (http://www.visualmicro.com) which allows you to use Visual Studio (and therefore code folding) and is compatible with the Arduino IDE so you can swap back at will, or share your work with others.Iain
I agree that such a thing would be nice in the IDE - but this goes the route of so many other changes proposed to the IDE: It makes it more complex, more geared to users who have already encountered such "more professional" options in other IDEs. This means the IDE that is standard for the Arduino becomes just a bit more less accessible for the user audience the Arduino is mainly aimed at: Non-professional programmers, non-programmers, artists, and students/educators.
Really, it's much simpler to make than to explain. This way, you can use any program at all to edit your files, and if it includes a user-configurable compile script (which most sane ones should, but I really have no idea), you just put in "arduino -c file1 file2 file3.
Please enter a valid email to subscribe
We need to confirm your email address.
To complete the subscription, please click the link in the
email we just sent you.
Thank you for subscribing!
via Egeo 16