You may be a PPL and still learning, but there is no excuse for not looking around here to see if your question has already been asked and answered here.
As it is, this one has been done to death.
Follow TCAS every time. Tell ATC what you're doing. End of story.