user23991: I'm writing a "sketch" in the Arduino IDE which has at this very moment 1500 lines and is going to become much longer. I splitted it in several tabs, but that's not very comfortable to use (I need to find the "precompiler" file in a temporary folder in order to have my program in a printable version, in the tabs bar I can't see all tabs, ...).
Are there any better alernatives to the Arduino IDE? Someone suggested me PlatformIO, is that a good IDE? (please note that I have a mac running OS X 10.12.1; I also have a (virtual) Windows 10 machine if absolutly needed, but I'd like to install the IDE on MAC OS X)
What are the best ways to create a long program? In general, for C++, what are the best practices? And is for Arduino the same?

user-1: Have you tried Atmel Studio? Right now, it only supports Windows but is a great alternative to Arduino IDE. 
If you're not comfortable using Windows virtual machine, I suggest you have a look at this: http://playground.arduino.cc/code/eclipse

23991: <p>I'm writing a "sketch" in the Arduino IDE which has at this very moment 1500 lines and is going to become much longer. I splitted it in several tabs, but that's not very comfortable to use (I need to find the "precompiler" file in a temporary folder in order to have my program in a printable version, in the tabs bar I can't see all tabs, ...).</p>

<p>Are there any better alernatives to the Arduino IDE? Someone suggested me PlatformIO, is that a good IDE? (please note that I have a mac running OS X 10.12.1; I also have a (virtual) Windows 10 machine if absolutly needed, but I'd like to install the IDE on MAC OS X)</p>

<p>What are the best ways to create a long program? In general, for C++, what are the best practices? And is for Arduino the same?</p>
 -1: <p>Have you tried Atmel Studio? Right now, it only supports Windows but is a great alternative to Arduino IDE. </p>

<p>If you're not comfortable using Windows virtual machine, I suggest you have a look at this: <a href="http://playground.arduino.cc/code/eclipse" rel="nofollow noreferrer">http://playground.arduino.cc/code/eclipse</a></p>
