In this categoryVS Code Setup ยท 25
- How to Set Up GitHub Copilot in VS CodeStart
- How to Use Copilot Chat and Inline Chat in VS Code
- How to Install and Manage Extensions in VS Code
- How to Install the Continue Extension in VS Code
- How to Install Cline, the Autonomous Coding Agent, in VS Code
- How to Configure Continue with an API Model
- How to Set Up an AI Assistant in VS Code
- How to Run Continue with a Local Model Using Ollama
- How to Run Copilot, Continue, and Cline Together Without Conflicts
- How to Add an MCP Server to Cline
- How to Fix AI Suggestions Not Appearing in VS Code
- How to Install and Trust an AI Extension in VS Code
- How to Install a VS Code Extension from the Command Line
- How to Create a launch.json to Debug a Node.js App in VS Code
- How to Initialize a Git Repository in VS Code
- How to Stage, Commit, and Push Changes from VS Code
- How to Debug a Browser App in VS Code with the Built-in Chrome Debugger
- How to Resolve Git Merge Conflicts in VS Code
- How to Run Build and Dev Commands with tasks.json in VS Code
- How to Add Environment Variables to a VS Code Debug Configuration
How to Set the Default Terminal Shell in VS Code on Windows
Pick which shell (PowerShell, Command Prompt, Git Bash, or WSL) VS Code opens by default and switch between them on demand.
On Windows, VS Code can open several different shells in its integrated terminal: PowerShell, the classic Command Prompt, Git Bash, or a Linux distro running under WSL. Many AI coding tutorials assume a bash-like shell, so it helps to know how to choose your default and switch quickly. This guide covers both.
What you need
- VS Code on Windows 10 or 11
- At least one shell installed (PowerShell ships with Windows; Git Bash comes with Git for Windows)
- WSL installed if you want a Linux shell (optional)
Step 1: Open the shell picker
Open the terminal with Ctrl+`. Click the small dropdown arrow next to the plus icon in the terminal toolbar, then choose Select Default Profile. VS Code lists every shell it has detected on your machine.
Step 2: Choose your default
Click the shell you want as your default, for example Git Bash. From now on every new terminal opens with that shell. The change is written to your settings file automatically.
Step 3: Verify the setting
Open the Command Palette with Ctrl+Shift+P, type Open User Settings (JSON), and press Enter. You will see the default profile entry. You can edit it here directly instead of using the picker.
{
"terminal.integrated.defaultProfile.windows": "Git Bash"
}Step 4: Open a different shell on demand
You do not have to change the default just to use another shell once. Click the dropdown arrow next to the plus icon and pick any profile from the list. That single terminal opens with the chosen shell while your default stays the same.
Result
Your terminal now opens with the shell you prefer every time, and you can spin up any other installed shell with two clicks when a task calls for it.
Watch related tutorials
11:32
14:36
1:42:18
28:14
41:09
9:47New guides in your inbox
Fresh step-by-step how-to guides as we publish them. One email a week, no more.