I live my life and i come across something that is painful because it takes time, or is complicated/tedious, etc, and i think to myself "is there anything i can do to make this better?"
Look for problems you have and try to solve them. Also as you learn more about programming you add tools to your toolbox. Having those tools helps you think about new problems you could solve. You might still have to look up the documentation on how to use that tool, but you can at least start to recognize that it could be used to solve a problem you're having