'VS Code Terminal running slowly

My terminal used to run just fine but for the past few weeks, I have been facing this problem. Once I hit the run button the terminal takes 10 seconds to respond and I am not able to fix it.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source