A good way to remember it is to use a backronym:
e.g. - example given
i.e. - in effect
i.e. - in eother (words)
in explanation