The phrase "doing it to a T" means doing something perfectly, exactly or precisely. You might use this expression when trying to describe an action that is executed flawlessly. However, there are many synonyms you can use to convey the same meaning. Some examples include 'doing something to a tee', 'with pinpoint accuracy', 'with surgical precision', 'to a nicety', 'just right', 'dead on', or 'spot on'. These expressions all emphasize the idea of doing something with complete precision or accuracy. So, whether you are giving a presentation, playing a sport, or cooking a meal, "doing it to a T" is an expression that you can replace with a number of other similar phrases.