Vijay Raghavan Aravamudhan's answer worked for me. I'm just starting to learn, so I had no idea there were different terminals in Visual Studio Code.
Here are the options which I found when clicking the arrow highlighted (and choosing "bash" solved the problem for me).Options for various terminals.