You can, and will too. By playing for others often. Play things that you have worked up for your peers, friends, etc. Also, schedule as many formal performances as possible, including recitals, solo opportunities, or concerts. You should perform often, and make it a habit.
Many players spend the vast majority of playing time in a room where no one is listening.
And they are surprised that no one wants to listen to them outside of that room either. Become a performer. There's no practice like the real thing. When I was a young student, I was overwhelmed with the prospect of trying to become a great player. That means, if you want to be a great player, you can be.