cmder vscode intergration fails

Created on 11 Dec 2018  路  2Comments  路  Source: cmderdev/cmder

I have [Shell launcher] installed on VS Code. I've been trying to run cmder through the VS Code integrated terminal, but everytime I run it, this error pops up.

error message

The configuration of cmder is:

"shellLauncher.shells.windows": [
    {
        "shell": "D:\\cmder\\Cmder.exe",
        "label": "Cmder",
        "args": ["/k D:\\cmder\\vendor\\init.bat"]
    },
],

I do have a vscode.bat file as instructed here, and did try the configuration presented there and this did not help.

Is there something I am missing here?

OS: Windows 10 x64
Cmder: ConEmu 161206 [64]
VS Code: 1.29.1

Most helpful comment

Turns out I did not read the documentation properly 馃槥 . The shell property should be of the Windows Command Prompt, that is, C:\\Windows\\system32\\cmd.exe (not the cmder.exe) and the args can be the same (or updated with the %CMDER_ROOT%.

So the resulting configuration is:

"shellLauncher.shells.windows": [
    {
        "shell": "C:\\Windows\\system32\\cmd.exe",
        "label": "Cmder",
        "args": ["/k D:\\cmder\\vendor\\init.bat"]
    },
],

All 2 comments

Turns out I did not read the documentation properly 馃槥 . The shell property should be of the Windows Command Prompt, that is, C:\\Windows\\system32\\cmd.exe (not the cmder.exe) and the args can be the same (or updated with the %CMDER_ROOT%.

So the resulting configuration is:

"shellLauncher.shells.windows": [
    {
        "shell": "C:\\Windows\\system32\\cmd.exe",
        "label": "Cmder",
        "args": ["/k D:\\cmder\\vendor\\init.bat"]
    },
],

For those who shows the console in a new window, I share my setup, I installed shellLauncher plugin.

My code:

{
    "editor.mouseWheelZoom": true,
    "terminal.integrated.shell.windows": "C:\\windows\\System32\\cmd.exe",
    "terminal.integrated.shellArgs.windows": [
        "/k",
        "C:\\Users\\enrique.delgado\\Downloads\\cmder_mini\\vendor\\init.bat"
    ],
    /* 
        The next setup is because shellLauncher plugin, if you don't have it installed you only will need the above code.
    */
    "shellLauncher.shells.windows": [
        {
            "shell": "C:\\windows\\System32\\cmd.exe",
            "label": "cmd",
            "args": [
                "/k C:\\Users\\enrique.delgado\\Downloads\\cmder_mini\\vendor\\init.bat"
            ]
        },
        {
            "shell": "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe",
            "label": "PowerShell"
        }
    ],

    "editor.formatOnPaste": true
}

Was this page helpful?
0 / 5 - 0 ratings