How do I use Bash on Windows from the Visual Studio Code integrated terminal?
git-bash, visual-studio-code
Solution
Install Git from https://git-scm.com/download/win
Open Visual Studio Code and press and hold Ctrl + ` to open the terminal.
Open the command palette using Ctrl + Shift + P.
Type - Select Default Profile
Select Git Bash from the options
Click on the + icon in the terminal window
The new terminal now will be a Git Bash terminal. Give it a few seconds to load Git Bash
You can now toggle between the different terminals as well from the dropdown in terminal.
Problem
Visual Studio Code on Windows uses PowerShell by default as the integrated terminal. If you want to use Bash from Visual Studio Code, what steps should be followed?
Related problems
- Visual Studio Code cannot detect installed Git
- Change the location of the ~ directory in a Windows install of Git Bash
- How can I add multiple terminals in Visual Studio Code?
- Cannot Edit Default VSCode JSON Settings
- GitBash not showing up as a terminal option in Visual Studio Code
- The new way to configure default shell and argument commands in VSCode?