We can increase our ability to control impulses.
Paul McKenna’s aversion technique may work for you, and so may psychologist Chris Ferguson’s advice.
Some people are helped by hypnosis, but I’m not one of them.
Also, reminders can help, as can
Believing in yourself (more here) but realizing that it won't be easy, and making it a challenge;
Setting goals, but small, realistic, and specific (more here) ones, recording them, and recording progress against them;
Making time for planning and carrying out steps toward meeting your goals;
Getting help from others or a buddy with the same goals (more here), and putting positive people in your life;
Exercising (more here), even if while watching TV;
Spending time in green spaces, or even imagining relaxing on a sandy beach;
Practicing mindfulness meditation, Zen, or Yoga (more here);
Making a fist, taking a walk, snapping a rubber band you keep on your wrist, or sniffing peppermint (or banana or apple) when tempted, or imagining eating the food you crave;
Thinking about long-term consequences or potential rewards;
Choosing brain-boosting foods;
Keeping blood sugar levels steady (more here), getting enough sleep (more here), and making sure the body’s natural rhythms aren’t disturbed;
Not allowing oneself to get hungry, angry, lonely, or tired (HALT, a 12-step acronym);
Imagining you’re eating the food you crave or, if giving in to temptation, eating slowly and savoring the treat (more here and here);
Rewarding successes (more here) and getting back on track after failures (more here);
Applying a weak electrical current to the scalp;
Externally applied LED light therapy (which also fights wrinkles);
Using cognitive therapy to train oneself to be less impulsive; and
Some medications.

