After 25 years of coding primarily in emacs, I switched mainly to VS Code for larger, more complicated projects last year. I did it mainly because it eases navigation through large code bases and because the visual debugger is so easy to use.
I still use emacs in the terminal for scripting and for smaller coding projects, for anything over SSH, and for blogging and fiction writing. It's a distraction-free editor that has very powerful features when you need them, but doesn't shove them in your face. It's also nice to be able to do everything with the keyboard and not have to keep reaching for the mouse.