This question already has an answer here:
I am going to Basel via London with BA on 11-11-2017.
I have a valid UK visa valid from 28-11-2017 for 6 months. I purchased a direct ticket Hyderabad to London and London to Basel with BA.
Both arrival and departure is at Terminal 5. The layover period is 21/2 hours.
Do I require a transit visa?