I've found it helps to actually time the urge, and note the time of day. It's surprising how brief they actually are. You can get through 5 minutes, or whatever it is.
Realize that it's a chemical reaction, an addictive impulse, not anything "real".
When you break it down, it loses its power, like a balloon deflating.
(Chocolate helps too!)