CodePudding user response:
Don’t use Windows Powershell or Git-Bash on Windows if you’re having this problem. Someone suggested on a similar post that the OP on that post should use the integrated terminal and not git-bash because it wasn’t compatible with VSCode. I tried the integrated terminal in VSCode and everything works as it should.
Thank you all for your help.