There isn't a silver bullet, but there are many things you can do.
What I did:
1) I realized that being a development manager is a different job than being a developer. Depending on your level, you can still code, but priority must be given to people (not code).
2) I read everything I could about leadership, emotional intelligence, effective communication, personal interactions, etc.
3) I had a great mentor. Having a strong mentor to brainstorm situations and learn "how to think" on a daily basis is a great thing.
4) Experience. As for everything, you need practice. You get better as you go.
Just like coding, leadership is a journey, not a destination.
We’re a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.