To change the default terminal in Visual Studio Code (VSCode) to the WSL (Windows Subsystem for Linux) shell instead of PowerShell, follow these steps:
1. Open VSCode Settings
-
You can open the settings by clicking on the gear icon in the lower-left corner of the VSCode window and selecting Settings.
-
Alternatively, you can press
Ctrl + ,
to open the settings directly.
2. Search for Terminal Settings
-
In the search bar at the top of the Settings pane, type terminal integrated default profile windows.
3. Change the Default Terminal Profile
-
Under the Terminal > Integrated > Default Profile: Windows section, you should see a dropdown menu.
-
Click the dropdown menu and select WSL Bash (or the specific WSL distribution you have installed, such as Ubuntu).
New terminal:
标签:Terminal,shell,Settings,VSCode,WSL,terminal,default From: https://www.cnblogs.com/zhangzhihui/p/18659563