With VSCode 1.39 (Sept. 2019), no more plugin needed.
You now can “Open new terminals with custom working directories”
There is a new command that allows the creation of terminals with a custom current working directory (
cwd
):{ "key": "cmd+shift+c", "command": "workbench.action.terminal.newWithCwd", "args": { "cwd": "${fileDirname}" } }
You can create your own keyboard shortcuts to open new terminals in any number of handy working directories.
Thecwd
value can either be a normal path or a variable.