[Without the benefit of both sides of the story, am assuming the advisor is truly bad.]
I was in your shoes, and I didn't leave my advisor. I greatly regret that. I stayed because I felt ethically obliged to, and because I am non-confrontational. I made a big mistake. Even trying to change advisors (within the same university) seemed awkward. And it would indeed have been too awkward and difficult to pull off. I should have just quit.
Five years from now, each of your present-day years will seem much more valuable than it does now. One of your years now has much more leverage now than it will five years from now. Do not waste years on a bad advisor. It sounds like this is the perfect time -- you say you expect another 3 years, which suggests you're 2 or 3 years in right now. One more year, and your identity will get too strongly coupled with your advisor's.
If you're in CS and taking up a CS job, there will not be an expectation of a reference from your advisor, if you can position these 3 years as an extended Masters. Get other references, and be honest but diplomatic about your advisor if asked.
I was in your shoes, and I didn't leave my advisor. I greatly regret that. I stayed because I felt ethically obliged to, and because I am non-confrontational. I made a big mistake. Even trying to change advisors (within the same university) seemed awkward. And it would indeed have been too awkward and difficult to pull off. I should have just quit.
Five years from now, each of your present-day years will seem much more valuable than it does now. One of your years now has much more leverage now than it will five years from now. Do not waste years on a bad advisor. It sounds like this is the perfect time -- you say you expect another 3 years, which suggests you're 2 or 3 years in right now. One more year, and your identity will get too strongly coupled with your advisor's.
If you're in CS and taking up a CS job, there will not be an expectation of a reference from your advisor, if you can position these 3 years as an extended Masters. Get other references, and be honest but diplomatic about your advisor if asked.