I studied Electrical and Computer Engineering (ECE) in college and it was very useful in my career.
In college you get a lot of freedom to explore and take different courses. When I first entered college I was not 100% sure what I will be doing in my career, but through out the courses I began to find my interest and passion. It is great that you have an idea about what you might want to do in the future already. To become a software developer the best-fit major is computer science. Some colleges also offer software engineering as a major but computer science or computer engineering are the most common. There are a lot of good colleges that are strong in this field, e.g., Carnegie Mellon, Georgia Tech, MIT, Stanford, etc. These colleges are not only strong in computer science, but also strong in relevant areas such as Maths, Engineering, etc. If you'd like to see the ranking of the schools on computer science I'd recommend the annual college rankings by U.S. News (https://www.usnews.com/best-colleges/rankings/engineering-doctorate-computer). If you do pick up computer software related majors, I'd also recommend you take courses from other disciplines to broaden your horizon. After all college life is much more than just focusing on your major.