Cmder shell in VScode
Q: Can I use Cmder's shell with the terminal on Windows?
A: Yes, 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 your settings.json
file:
"terminal.integrated.shell.windows": "C:\\WINDOWS\\System32\\cmd.exe",
"terminal.integrated.shellArgs.windows": ["/K", "C:\\cmder\\vscode.bat"]
reference - https://github.com/Microsoft/vscode-docs/blob/master/docs/editor/integrated-terminal.md