How does an IDE work?

To know more about how an IDE works, see https://www.hackerearth.com/docs/wiki/developers/solution-guide/