File > Prefrences >Setting type : run code scroll until you get code-runner and check on the "Whether to run code in integrated terminal" restart vscode