ZhangZhihui's Blog  

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:

 

posted on 2025-01-08 13:49  ZhangZhihuiAAA  阅读(58)  评论(0)    收藏  举报