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

When cmder opened in visual studio code, there is wrong path #981

Closed
kaermorchen opened this issue Jun 7, 2016 · 5 comments
Closed

When cmder opened in visual studio code, there is wrong path #981

kaermorchen opened this issue Jun 7, 2016 · 5 comments

Comments

@kaermorchen
Copy link

kaermorchen commented Jun 7, 2016

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

@SimonCapewell
Copy link

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"

@kaermorchen
Copy link
Author

@SimonCapewell Thank you for help. It works.

2016-08-16_19-59-18

@tyler36
Copy link

tyler36 commented Jan 9, 2018

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%

@hudsonsilvaoliveira
Copy link

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

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

@tyler36
Copy link

tyler36 commented Feb 5, 2018

@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 :)

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

4 participants