To prevent bloating, eat low-FODMAP foods, lean proteins, non-gassy veggies, low-lactose dairy, and probiotic-rich foods. Avoid eating high-FODMAP foods, carbonated drinks, sugary foods, fatty foods, and dairy (if lactose intolerant).