Cmder: When cmder opened in visual studio code, there is wrong path

Created on 7 Jun 2016  路  5Comments  路  Source: cmderdev/cmder

Hello.

I work in Visual Studio Code and it's have external terminal.
If press Ctrl + Shift + C, terminal had opened with the path project.
But when I have changed setting:

{
    "terminal.external.windowsExec": "Cmder"
}

Cmder has opened and it's has wrong path - C:\Users\Admin

Most helpful comment

This was working for in Visual Studio yesterday.

    "terminal.integrated.shell.windows": "C:\\Windows\\System32\\cmd.exe",
    "terminal.integrated.shellArgs.windows": [
        "/k",
        "%CMDER_ROOT%\\vendor\\init.bat"
    ],

Updated to latest CMDER v1.3.4 and now terminal always opens @ %userprofile%

All 5 comments

I've got this working by dropping the _-new_console:d:%USERPROFILE%_ from the startup command for the default task. It now looks like _cmd /k "%ConEmuDir%..\init.bat"_

@SimonCapewell Thank you for help. It works.

2016-08-16_19-59-18

This was working for in Visual Studio yesterday.

    "terminal.integrated.shell.windows": "C:\\Windows\\System32\\cmd.exe",
    "terminal.integrated.shellArgs.windows": [
        "/k",
        "%CMDER_ROOT%\\vendor\\init.bat"
    ],

Updated to latest CMDER v1.3.4 and now terminal always opens @ %userprofile%

@tyler36 Just figured it out bro. Just use this:

"terminal.integrated.shell.windows": "C:\\cmder\\Cmder.exe",
"terminal.integrated.shellArgs.windows": ["/START", "%CWD%"],

@hudsonsilvaoliveira thanks for the update.
There was another issue I had (#1600) that lead to a fix that didn't require a change to my config.

Nice to know theres another option :)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jenisys picture jenisys  路  3Comments

luisrudge picture luisrudge  路  3Comments

isnullxbh picture isnullxbh  路  3Comments

Joe1992w picture Joe1992w  路  3Comments

giuliannosbrugnera picture giuliannosbrugnera  路  3Comments