When I mentioned not eating where you sleep, that's something backpackers do in bear country, but it can also be used when car camping when traveling (not at a base camp). Pick a time to eat, and do it before you make it to your parking spot for the night. Doing that will cut down on food odor where you're sleeping. When base camping - or if you decide to eat where you park, try to position your camp kitchen & eating area downwind of your campsite, and 100' or so from it.
Either way, keep food put up as much as possible when you're eating, as well as trash. If a campsite has a bear box, use it. Dump your trash as soon as you can. Don't leave coolers out - some bears know they have food in them on site. That's more of an issue in campgrounds in places like Yellowstone, but it pays to keep coolers put up.