Dear Jma.dawson, hello.
Heart burn and acidity is due to increased acid(HCl) secretion in the stomach and its reflux towards oesophagus.
You should take following precautions:-
1. Avoid remaining empty stomach for long.
2. Avoid spicy and oil rich foods.
3. Stop smoking, if any.
4. Stop alcohol, if any.
5. Drink plenty of water.
6. Don't take pain killers and steroids
Coming on the medicinal aspect, youc can take Ranitidine
for better relief. Liquid antacid
gel makes protective covering on the damaged mucosa and is helpful in relief of symptoms.
I hope this is helpful to you. Thanks.