During my studies, I did do quite some coding, but this was mostly due to my own interests. There are plenty of opportunities to code: embedded, simulations, data processing, more and more ML stuff, ...
However, what you don't learn in electrical engineering is software engineering. If you are lucky you can do data structures & algorithms but even that is not always part of the program.
If you want to work as a software engineer I would go for electrical engineering. I would probably do computer engineering or compsci. Compsci often is very very theory heavy on theoretical comp sci, but that's not necessarily bad, just not something that will help you in software engineering in my mind.