Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmder vscode intergration fails #1984

Closed
TonyLancer opened this issue Dec 11, 2018 · 2 comments
Closed

cmder vscode intergration fails #1984

TonyLancer opened this issue Dec 11, 2018 · 2 comments

Comments

@TonyLancer
Copy link

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
@TonyLancer
Copy link
Author

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"]
    },
],

@Tecayehuatl
Copy link

Tecayehuatl commented Mar 7, 2019

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
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants