Before I left my husband, I had the same problem! He ate anything he wanted & stayed 220 lbs @ 6'3" tall... me, I look @ food, I gain! I kept the house stocked with stuff that I could eat when the urge to eat came to me. I also kept all his "bad food" in one specific cabinet, that I would NEVER, NEVER OPEN! It was opened by me only when I went grocery shopping & had to put new food into it. I kept mine however, in plain view, in the glass hutch, that way the first thing I would see if I was hungry was the good food.
It took getting used to and took a lot of will power, but it worked...