VS Code: Open User-defined Console like ConEmu at Project Directory

For me Ctrl/Cmd+Shift+C is a convenient way to open a command prompt or terminal to execute some commands. However currently Visual Studio Code does not support specifying custom console yet.

I mentioned how to modify VS Code program files to achieve this, but as now we can write extensions for Code, why not just do it in this more elegant way?

So I wrote a tiny extension for opening a console at the directory of workspace.

You may find this extension by Ctrl/Cmd+P and typing ext install console.

After installation, the extension will add a keybinding overrides default Ctrl/Cmd+Shift+C with its own console.open command. You'll need to configure the console executable before using that shortcut again.

For ConEmu on Windows, the basic configuration is like:

{
    "console.executable": "cmd.exe",
    "console.args": "/s /c \"\"C:\\Program Files\\ConEmu\\ConEmu64.exe\" /single\""
}

Now try to open a folder in Visual Studio Code and press Ctrl/Cmd+Shift+C, you should be seeing the new console. ;)

GitHub https://github.com/vilic/vscode-console