Some of those comments, are just sentences, but then sometimes it's easier to just put the code in the comment, than to describe it in any other way. Still commented out, though. I'm not coding this now, just saying what i will do, eventually.
After a while, sometimes I uncomment a few sections, and test just those little functions to see that they work, anyway. But basically, I'm not coding now, don't have the energy or will to do it right now.
Sometimes, it is enough to get me going, and I turn the comments into code. Other times, I stop for the day once everything is planned out, as much as I can at this point. Either way, it is better than not approaching it at all, because it seems to require (psychologically) a smaller step to code it once I do come back to it the next day, because everything is planned out.
If you don't have a job in programming just now, do puzzles, do a small app for organizing your recipes or books, do something. It doesn't have to be something which anyone else will ever want or need to see, just something to exercise that part of your brain.
1) Promise someone you value/respect to deliver some program
2) Join an interesting coding competition
3) Help teach kids programming.
4) Figure out if you can solve a problem in your current scenario with any program.
Concentrate on the process/act of doing it, rather than the thing itself. Learn to enjoy doing it. Also if you are not doing it already, I would suggest to start exercising or playing a physical sport which would put you in better frame of mind.
And yes, talk to a counsellor as well if you feel it helps.
And you'll inevitably learn something. Bite sized so you can for it into your day.