I've noticed that after a good workout, when I am suddenly "craving" some junk food like ice cream or something cheese-y etc, if I take a moment to think about what is in the food that might be soothed with a healthier substitute. For ice cream, I usually find a small container of Greek yogurt with fruits or some nuts satisfy my craving and give me good nutrients for my muscles after the workout.
Maybe other times I am wanting something crispy and crunchy, so celery might be a good substitute. I just try to note if the snack might be addressing a need for protein or water or calcium and make a more appropriate substitution (or pack it to go before a workout!).