Before logging an issue, please update to the latest release of Visual Micro from the Downloads Page.

When Logging a Support Issue in the Forum, please ensure you have also:-

  • Enabled vMicro > Compiler > Show Build Properties
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
  • Click the Reply button and attach as .txt file OR
  • Click here to Email us with the file attached, and a link to your post
Support requests without the output above may be impossible to answer, so please help us to help you
 
Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Collapsible code section support (Read 2848 times)
Experimentalist
Junior Member
**
Offline


Posts: 29
Location: UK
Joined: Oct 6th, 2012
Collapsible code section support
Apr 8th, 2015 at 9:44pm
Print Post  
Is there any way to create collapsible code section in visual micro without bodging?

By bodging I mean I have used pre-processor bodges such as:

#if 1
   collapsible section by bodge
#endif

Is there a proper way to do it?
  
Back to top
 
IP Logged
 
Experimentalist
Junior Member
**
Offline


Posts: 29
Location: UK
Joined: Oct 6th, 2012
Re: Collapsible code section support
Reply #1 - Apr 8th, 2015 at 10:00pm
Print Post  
Further trials and tests seem to show that using:

#pragma region Region_1
#pragma endregion Region_1

. . . which I thought was Visual Studio specific, seems to compile fine in both VS with VM and Arduino IDE. Thought the Arduino IDE would balk at such thingsĀ  Smiley

Any other suggestions or comments welcomed
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Collapsible code section support
Reply #2 - Apr 8th, 2015 at 10:06pm
Print Post  
Just posted the same http://www.visualmicro.com/post/2015/04/08/Arduino-code-collapsible-regions.aspx

Smiley

Seems the #pragma is ignored by the gcc compiler and the Arduino Ide treats code like a text editor. So seems okay.
  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint