Writing down helps, I agree. Sometimes seeing exctly what you eat in black and white can be a bit of a shocker.
This. Also,
Tracking my intake was a big eye opener for me, I keep track on Daily Plate.
this. I use FitDay and it's not the calorie intake that gets me, it's the macronutrient intake. Way too easy for me to overdo the saturated fats or carbs without a model of what I am actually taking in. Either way though, tracking is powerful.
If I want chocolate, it's better to just have a piece of chocolate than chocolate ice cream or chocolate cookies. I just add it into my daily calories and that's fine.
At a family member's urging (she has lost over 50 pounds now) I started keeping a single bar of good dark chocolate around. Currently working on a Lindt mint variety, and I find even 100 calories of it will kill my sweet tooth without blowing the nutrition for the day. A single bar will last me 10-14 days normally.
Which is odd cause with most other things I have to limit my access to them. If I buy anything else and nibble at it it gets devoured shortly. Don't let me get a pie or cake in here, it won't last past 36 hours normally.
I also find the occasional cheat (like a meal a week or something) can keep me on track. But I still have to be careful with the sweets then.
In addition multiple smaller feedings really helps me (YMMV). I get sated so much easier and quicker now that my stomach has adapted. I do tend towards more "ravenous hunger" if I put off feedings, but even that helps me stay focused in a strange sort of way and anyways, the 1st few bites of anything healthy usually banishes my jones.
Finally, I have learned that while my brain says PIZZA when my stomach says it is hungry, all my stomach cares about is FOOD. So I hit it with some salmon and when it shuts up so does my reptile brain. So in a way I feed cravings healthy foodstuffs.
P.S. exercise. I cannot even think of food for like 30 or 45 minutes after a good session-cardio or weights- and once my appetite does return it stays lower for some time.