Using IntelliJ to for Arduino IDE
You can now use Jetbrains' CLion to develop and run Arduino sketches. Just grab the Arduino plugin!
Open Clion and go to Configure/Settings/Plugins. Choose 'Browse Repositories' search for Arduino, and click install. (There are two. One is a fork of the other. I recommend picking the one that was updated more recently.) Then restart Clion.
You'll now see the option to create a new Arduino Sketch Project!
I've opted for using XCode, managed to find some templates online. Way better than using the standard Arduino IDE.
You can use PlatformIO together with any IntelliJ product. Here is an article about how to wire them together: http://jandevblog.blogspot.com/2016/01/how-to-use-intellij-idea-to-develop-and.html