"terminal.integrated.defaultProfile.windows": "Command Prompt", 1

“terminal.integrated.defaultProfile.windows”: “Command Prompt”,

"terminal.integrated.profiles.windows": {
    "PowerShell": {
        "source": "PowerShell",
        "icon": "terminal-powershell"
    },
    "Command Prompt": {
        "path": [
            "${env:windir}\\Sysnative\\cmd.exe",
            "${env:windir}\\System32\\cmd.exe"
        ],
        "args": [],
        "icon": "terminal-cmd"
    },
    "Git Bash": {
        "source": "Git Bash"
    }
},

Here is what the above code is Doing:
1. It’s adding a new profile called “PowerShell” to the list of profiles.
2. It’s setting the source of the profile to “PowerShell”.
3. It’s setting the icon of the profile to “terminal-powershell”.
4. It’s adding a new profile called “Command Prompt” to the list of profiles.
5. It’s setting the path of the profile to the path of the cmd.exe executable.
6. It’s setting the icon of the profile to “terminal-cmd”.
7. It’s adding a new profile called “Git Bash” to the list of profiles.
8. It’s setting the source of the profile to “Git Bash”.

Now, when you open the terminal, you’ll see the new profiles in the dropdown list.

![](https://i.imgur.com/QQQQQQQ.png)

## Adding a new profile

If you want to add a new profile, you can do so by adding a new entry to the “terminal.integrated.profiles.windows” object.

For example, if you want to add a new profile called “Git Bash”, you can do so by adding the following code to your settings.json file:

Similar Posts