1

After I Select Default Profile to WSL, I have this configuration line "terminal.integrated.defaultProfile.windows": "Ubuntu-20.04 (WSL)" in settings.json. Then when I open VSCODE, the terminal is still powershell, only when I open a New Terminal, it appears to be the WSL shell, did I miss any configuration? I thought the terminal should be WSL even when I open VSCODE.

Yufeng Guo
  • 51
  • 4
  • Does this answer your question? [VSCode Change Default Terminal](https://stackoverflow.com/questions/44435697/vscode-change-default-terminal) – Faisal Jun 10 '21 at 02:32
  • @Faisal No, it does not. If you read my questions, I have already use that to set the default profile, and it will work only after I opened the terminal and add new one. The terminal when I open VSCODE is still powershell. – Yufeng Guo Jun 10 '21 at 09:59
  • 1
    Are you running v1.57? And did that fix it? Try to open another terminal, close the powershell terminal and reload or restart vscode. – Mark Jun 12 '21 at 20:52
  • @Mark, just checked, the issue is gone (VSCODE is upgraded to `1.57` recently), thanks. – Yufeng Guo Jun 15 '21 at 02:23

1 Answers1

0

Note this error came back in VSCode 1.60 (Aug. 2021), and was (almost) fixed in 1.60.1.

However... You now have: "on reload, an extra terminal is getting created "

https://user-images.githubusercontent.com/29464607/133345067-d4ea8242-3845-48d4-a7e7-5c08ff26a7b3.gif

This will be fixed in VSCode 1.61 (Sept. 2021)

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250