Walk away. When you have an intense sugar craving, get up and walk away from any area that has sugar available. If you are in your home, go for a walk around the block to get you away from your kitchen. If you are in public, move to another location where sugar is not available.
If possible, find something engaging to do like visit a museum or go window shopping to help distract you from your craving.