This essay is pretty much the advice I'd give to my younger self, on the topic of finding what you want to do and how that might translate into a career. I ended up in the software engineering field, but please don't just think of this document as "how to become a software engineer".
As a middle/high school student
Grades are important, but extracurriculars are what make you stand out. Ideally you can develop your interests to a degree that they can act as extracurriculars. Try to discover your interests, and figure out how to develop them productively. Do you like video games? Movies? Music? Try to learn how to create the things you enjoy. Develop skills from things that inspire you.
Don't get too focused on one thing. High school is the place to be well rounded - even if you think you don’t like english/math/history class, try your best to learn. In college, some of these won’t fit into your curriculum and it’ll be hard for you to learn them again. Figure out who the good teachers are (good, not easy), and take those courses if possible.
High school is where you should learn critical thinking skills. Work on actively engaging with the knowledge you learn; don't trust people based on their authority. Question ideas that don't make sense to you: don't just accept that you don't understand something! A good teacher should help you develop these skills, rather than having you memorize random things from the textbook.
Don't do things just to make your parents happy. Think about what you want to do 5, or even 10 years ahead. In order to accomplish your goals, you need to develop agency. Given the goals that you want to do, find out the steps you need to accomplish them and work your way through the tasks. This is a skill that requires practice! Don't be too aggressive with your goals; pick something that seems reasonably achievable and then repeat.
Some practical advice: Challenge yourself. Take as many AP tests to get transferrable credits, or take interesting community college courses on the side. This sets you up for more freedom in college, since your credits may let you graduate earlier or take more non-major classes that you are interested in. Self-studying some easier courses (AP environmental science was what I did) is incredibly useful when your course load doesn't allow for more AP classes. Doing this is much faster than taking a course for an entire year. Similarly, if you are a heritage language speaker, you should put in some effort in learning the language. Being a heritage speaker puts you at a significant advantage, and you should take advantage of that. For instance, taking AP Chinese allowed me to skip foreign language requirements in high school and college. In general, it's also pretty useful to be multilingual, for traveling and family purposes.
As an early college student
I would recommend reading this post as a similar guide. In general, you should do your best to make friends and talk to as many people as possible. Particularly in freshman year, everyone is in the same situation as you. There's nothing wrong with just saying hi to someone who you've seen before in the same class or discussion section.
Relationships are more important than you may think! Think of college as the last place where you can find your future long-term friends. It's a specific time where you're surrounded by peers similar to you and you have the free time to socialize with people. As a corollary, grades are less important than you may think. Don't overbook classes (especially in your first year) unless you have a very good reason to. This is where your AP credits come in handy. I was able to graduate a year early with a very typical course load; the key is to make sure you're closely reading and satisfying whatever graduation requirements there are for the major you want to be in. It's easier to graduate early when you're certain about what you want to do, but there's absolutely nothing wrong about doing some more exploring and staying for the standard 4 years.
You are still in the period of figuring out what you want to do; changing your mind is OK. You should try a lot of different courses and/or clubs before you commit to any particular path. Freshman year is meant for this. If you're interested in doing a CS degree, take the introductory classes and see how you enjoy them. Don't pick a course because you heard it was easy; pick the course where you learn the most!
During winter or spring, you may want to apply to some internships. As a freshman, this is more difficult because companies are usually trying to find 3rd year students so that they can send them return offers for the following year. However, some companies do offer internships targeted towards freshman, such as the Google STEP program. You can try to apply to these, or try looking for a more local internship if that's an option. See my writing on job searching for more specific details.
As a junior/senior CS major
Now that you've (presumably) finished taking your core CS classes, you should have several more options in your upper division courses.
As a default, I would suggest taking an algorithms course as well as a data science course. Most difficult CS interviews ask technical questions based on algorithms, so this is very useful when job searching. See the Berkeley CS170 textbook for an example. A data science class is useful in pretty much all jobs, since you'll almost certainly run into a problem that requires some basic data analysis and graphing skills. I took the Berkeley DS100 course and would strongly recommend something similar; they have a free online textbook that you can study yourself.
In addition to these courses, figure out what specialty you might be interested in. From my point of view, there's 3 general categories of study: Hardware, software, and theory (see this mapping for an example). Go take some of each, and drop the ones you find least interesting. Don't forget to apply for internships (or research!) again, now that you're in a better position.
At this point, you should also be deciding between going into industry or continuing with grad school. In general, my opinion is that you should consider grad school only if you are specifically interested in aspects of academia (such as wanting to do a specific field of research, or becoming a professor) and don't mind the financial costs. Either way, this is another part where having good friends should come in handy - ask around for referrals or recommendations, and talk to people who have made the jump either way for advice. Enjoy your last years as an undergrad, and don't tunnel too hard on getting good grades.