DEV Community

loading...

How to setup Cmder in VSCode in 2021

Andrew
・1 min read
"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",
Enter fullscreen mode Exit fullscreen mode

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"]
    }
  },
Enter fullscreen mode Exit fullscreen mode

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",
Enter fullscreen mode Exit fullscreen mode

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",
Enter fullscreen mode Exit fullscreen mode

// End

To Learn More:

Discussion (0)