How to compile and execute code in Atom or similar IDE?

Hey guys,

I wanted to know how to compile and execute code (C, in particular) in atom or a similar IDE. I currently use Xcode and that has its drawbacks so I was wondering how to set it up with Atom so that I have the same functionality with the terminal window and such. Thanks en avance!