If you are unable to find the solutions from the other answers, one of the reasons could be the 'Code Runner' extension by Jun Han. That was the case for me. Try uninstalling it.