Make your menus and don't buy extras.
If you don't buy it, you can't eat it, so just keep the healthy stuff around. Also, think before you bite - consider the reason you're eating. Is it hunger or stress or boredom? If it's stress or boredom, find an alternative activity until the temptation passes.