I know for me personally this is something that I have been struggling with and have been trying to fix. Writing ideas down and then "letting them go" rather than diving deep into coding, write up potential features, build a landing page showcasing those features/etc and then capture feedback/signup and see if it sparks interest.
People have created assemblymade.com and https://ramen.is/ which is pretty slick for a developer to get some traction by putting the idea out there and seeing if people are interested as well as creating some way to capture potential users
On the flip side, just because you CAN code something, doesn't mean you SHOULD.