Welcome Samara!
I guess there are a number of approaches you could take when the urge to eat arises, but of course the level of success you experience will depend on a bunch of different things. Is it a bad habit, or is it more on the addiction side of things? Can you do something different when you want to, or are you powerless over the obsession and compulsion to eat? If it's the later, distraction. Or picking another activity could help. But if it's more serious, you may need help in changing.
And we are here regardless.