How to change the terminal to the current directory in visual studio code ? (hotkey) [duplicate]

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.
The cwd value can either be a normal path or a variable.

Leave a Comment