As someone with a
major sweet tooth, here's what helps me:
1. eat enough protein. Eating every 3-4 hours and including a little protein in each meal/snack helps keep blood sugar stable, which prevents those dips that are often to blame for bad carb/sugar cravings.
2. get enough sleep. Tiredness also often causes you to crave bad carbs and sugar. the body is craving immediate energy, and to our taste buds that spells "cookies"

I swear when I go to bed late, the day after I crave sugar way more.
3. drink lots of water. Dehydration can also pass for cravings.
4. focus on whole foods. Lots of the additives in processed food can upset the balance in your body and increase the need for certain vitamins and minerals, which then come out as cravings. Also, processed grains are **** for your blood sugar and will most often result in you craving more starches/sugar.
Make sure you eat lots of fiber-rich foods, especially vegetables, and when you consume grains choose the unrefined version, like brown rice in your soup or steel-cut oats for your oatmeal.
I hope this helps!