For IDE, recently, I'm liking Visual Studio Code. It's a lighter, electron-based editor, like atom.io or Sublime Text, but with better debugging functionality.
You can install it on Raspberry Pi. Then install a C++ extension for it.
Instructions etc. here:
https://code.headmelted.com/