In this article, we will see how to change the default terminal in VS Code (Visual Studio Code). By default, PowerShell is set as the default terminal for VS Code.
Table of Contents
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:
- Open VSCode on your system.
- Now press ‘Ctrl + Shift + P‘ in Windows/Linux or ‘Cmd + Shift + P‘ in MacOS. It will open the command palette in VSCode.
- In the command palette, type “Terminal: Select Default Profile” and select the option when it appears.
- Now, from the list of shells, select the one you want to be your default shell. I will select ‘Command Prompt‘ as my terminal.
Once done, open your terminal in VS Code, 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. It will change VSCode terminal to Bash.
Related Article: