I would like to integrate Cmder into my Vscode settings but on vscode April 2021 updates the commands "terminal.integrated.shell.windows" and "terminal.integrated.shellArgs.windows" were deprecated.
I'm using VS Code 64bit on Windows, and I tried to modify my settings.json
file, to create a Cmder profile as the integrated terminal as follows:
"terminal.integrated.profiles.windows": {
"Cmder": {
"source": "Cmder",
"overrideName": true,
"icon": "cmder",
"env": {"CMDER_ROOT": "C:\\tools\\cmder"},
"path": "%CMDER_ROOT%\\Cmder.exe",
"args": ["/K", "%CMDER_ROOT%\\vendor\\bin\\vscode_init.cmd"],
},
},
"terminal.integrated.defaultProfile.windows": "Cmder",
However, the integrated 'Cmder' profile doesn't work and for the command terminal.integrated.defaultProfile.windows": "Cmder",
appears that "This setting can be applied only in application user settings".
Anyone else trying to integrate Cmder as a integrated profile of the vscode terminal?
Open Visual Studio Code and press and hold Ctrl + ` to open the terminal. Open the command palette using Ctrl + Shift + P . Type - Select Default Shell . Select WSL Bash (NOT Git Bash ) from the options.
How to setup Cmder in VSCode in 2021 1 Download Cmder 2 Save Cmder to C:\ drive 3 Open Settings.json in VSCode 4 Create VSCode Integrated Terminal Settings
Tip: refer to here on notes about handling spaces in your path. TL;DR: It's not recommended by the Cmder team, but you may use ^ character before spaces to handle the paths. You don't need to restart VS Code to make this work. Hit Ctrl + ` (Control-Tilde) to open Cmder in VS Code terminal!
Cmder 1.3.12 introduced a vscode_init.cmd script which allows VS Code tasks to work correctly with Cmder. The documentation in VS Code, referred to in the answer above, is out of date if you're using a version of Cmder greater than 1.3.11.
terminal.integrated.Profiles.windows
and click in Edit in settings.json
.Cmder
as the default profile: "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",
},
"Windows PowerShell": {
"path": "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe"
},
"Cmder": {
"path": [
"${env:windir}\\Sysnative\\cmd.exe",
"${env:windir}\\System32\\cmd.exe"
],
"env": {"CMDER_ROOT": "C:\\tools\\cmder"},
"args": [
"/K",
"%CMDER_ROOT%\\vendor\\bin\\vscode_init.cmd"
],
"icon": "cmder",
}
},
"terminal.integrated.defaultProfile.windows": "Cmder",
Make sure that your Cmder directory exist into C:\tools
And enjoy.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With