Yes, this has been a real problem for me. Not just anxiety, but most negative feelings: depression, stress, loneliness, frustration, feeling trapped. I made some progress with it last year, but backslid this year. (Never eaten out of the garbage though...I kinda went 'yikes' when I first heard of people doing that. I assume they throw the food in the garbage to deter themselves from eating it, but then get too desperate to have it and it doesn't work).
I get why it's hard to understand, since anxiety often brings about loss of appetite. I've never wanted to eat either when I was in the midst of full-blown, heart pounding, shaky, queasy nervousness. The urge to eat something happens more when discomfort is starting to creep in around the edges of my consciousness, or when my mind is cycling through a lot of disturbing thoughts, or after I've had a minor meltdown and calmed down a bit. Then the eating numbs me and shuts off my mind.