How to Change default terminal in VSCode

In this article, we will see how to change the default terminal in Visual Studio Code (VSCode). By default, PowerShell is set as the default terminal for VSCode.

However, if we want to change the default shell from Powershell to CMD or GitBash, then what to do?

Well, to set the default terminal to any other of your choice, you can follow the simple steps given below.

Change the terminal in VSCode to CMD or GitBash.

Since I am a Windows user, I want to change the default shell to Command Prompt (CMD). So to do that, follow the steps:

  1. Open VSCode on your system.
  2. Now press ‘Ctrl + Shift + P‘ in Windows/Linux or ‘Cmd + Shift + P‘ in MacOS. It will open the command palette in VSCode.
  3. In the command palette, type “Terminal: Select Default Profile” and select the option when it appears.
  4. Now, from the list of shells, select the one you want to be your default shell. I will select ‘Command Prompt‘ as my terminal.

Change default terminal shell in VScode

Change default terminal shell in VScode

Once done, open your terminal in VSCode, and you will see your selected default terminal.

If you want GitBash as your default shell, make sure you have installed it on your system first, then follow the steps shown above to set it as default.