When i.e. or e.g. are used, they introduce a renaming of what was just said. How they are punctuated depends upon where they are in the sentence and what follows them.
When they are at the end of the sentence...
When followed by a fragment, use a pair of commas.
...was following the red car, i.e., the Ford...
...including a good source of protein, e.g., nuts...
When followed by a complete sentence, use a semicolon or period in front and a comma after.
...was following the red car; i.e., it was the Ford...
...including a good source of protein; e.g., she ate a lot of nuts.
When followed by a list, use a colon in front and a comma after.
...was following two cars: i.e., the Ford and the VW...
...including a good source of protein: e.g. nuts, eggs, chicken...
Stay tuned!
Happy punctuating!
Margie