VSCode + Cmder integration - strange problem

Could you tell me why when I integrate vscode and cmder, for example:

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

and use the mini_cmder version, everything works fine. But if I do the same with the full version of cmder, the option "Open in terminal" from the context menu does not work. Does anyone know how to solve this?

Regards,

shelter

+2
source share
1 answer

Yes, in order to use the Cmder shell in VS Code, you need to create a vscode.bat file in your cmder path with the following contents:

@echo off
SET CurrentWorkingDirectory=%CD%
SET CMDER_ROOT=C:\cmder (your path to cmder)
CALL "%CMDER_ROOT%\vendor\init.bat"
CD /D %CurrentWorkingDirectory%

then in your VS Code user settings, add the following to the settings.json file:

"terminal.integrated.shell.windows": "C:\\WINDOWS\\System32\\cmd.exe",
"terminal.integrated.shellArgs.windows": ["/K", "C:\\cmder\\vscode.bat"]
+2
source

Source: https://habr.com/ru/post/1684001/


All Articles