1 Take Proper diet Diet plays the key role in controlling stomach bloating. 2  You should avoid such foods that you find hard to digest. 3  Avoid all kinds of fatty and greasy food which can causes gas buildup in your stomach such as fast foods or meal cooked in excess oil.