Avoid gassy foods like beans, broccoli, eggs, and cabbage. Also, avoid carbonated drinks and beer, and eat slowly, so you swallow less air while eating.