How to setup Cmder in VSCode in 2021
Andrew
Posted on May 23, 2021
"terminal.integrated.profiles.windows": {
"Cmder": {
"path": "${env:windir}\\System32\\cmd.exe",
"args": ["/k", "C:\\cmder\\vendor\\bin\\vscode_init.cmd"]
}
},
"terminal.integrated.defaultProfile.windows": "Cmder",
Step 1: Download Cmder
Step 2: Save Cmder to C:\ drive
Step 3: Open Settings.json in VSCode
Step 4: Create VSCode Integrated Terminal Settings
"terminal.integrated.profiles.windows": {
"Cmder": {
"path": "${env:windir}\\System32\\cmd.exe",
"args": ["/k", "C:\\cmder\\vendor\\bin\\vscode_init.cmd"]
}
},
This will initialize the default command prompt with the argument of vscode_init.cmd
OPTIONAL: Set Cmder as default integrated terminal
"terminal.integrated.defaultProfile.windows": "Cmder",
Common Use Case: Multiple Integrated Terminals
For using multiple integrated terminals Powershell, Git Bash, or the regular command prompt
"terminal.integrated.profiles.windows": {
"PowerShell": { "source": "PowerShell", "icon": "terminal-powershell" },
"CommandPrompt": {
"path": [
"${env:windir}\\Sysnative\\cmd.exe",
"${env:windir}\\System32\\cmd.exe"
],
"icon": "terminal-cmd"
},
"GitBash": {
"path": ["C:\\Program Files\\Git\\bin\\bash.exe"],
"source": "Git Bash",
"icon": "terminal-bash"
},
"Cmder": {
"path": "${env:windir}\\System32\\cmd.exe",
"args": ["/k", "C:\\cmder\\vendor\\bin\\vscode_init.cmd"]
}
},
// Choose Default Terminal
// "terminal.integrated.defaultProfile.windows": "Cmder"
// "terminal.integrated.defaultProfile.windows": "GitBash"
// "terminal.integrated.defaultProfile.windows": "CommandPrompt"
// "terminal.integrated.defaultProfile.windows": "PowerShell",
// End
To Learn More:
💖 💪 🙅 🚩
Andrew
Posted on May 23, 2021
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.
Related
githubcopilot AI Innovations at Microsoft Ignite 2024 What You Need to Know (Part 2)
November 29, 2024