cmder in vs code code example

Example 1: cmder in vscode

/*By: AnassAzeroual*/
/* Créez un fichier vscode.bat à la racine du répertoire cmder */
    @echo off
    SET CurrentWorkingDirectory=%CD%
    SET CMDER_ROOT=C:\cmder
    CALL "%CMDER_ROOT%\vendor\init.bat"
    CD /D %CurrentWorkingDirectory%Copy
/* Dans les paramètres de Visual Studio Code, ajoutez ces deux lignes */
    "terminal.integrated.shell.windows": "C:\\WINDOWS\\system32\\cmd.exe",
    "terminal.integrated.shellArgs.windows": ["/K", "C:\\cmder\\vscode.bat"]

Example 2: visual studio code terminal window shortcut back

// Toggle between terminal and editor focus
{ "key": "ctrl+`", "command": "workbench.action.terminal.focus"},
{ "key": "ctrl+`", "command": "workbench.action.focusActiveEditorGroup", "when": "terminalFocus"}

Example 3: vscode select terminal

# to select new default shell for the terminal in vs code:
- press F1 in VS Code
- typing/selecting Terminal: Select Default Shell

Tags: