Photo by Yancy Min on Unsplash
Scenario
Sometimes you want to open a terminal at the place of the current file folder you are working on, and do it fast and easily.
In vscode, you needed to go to the folder at the tree view and select the option Open in integrated terminal
.
This invloves mouse work.
Solution
Instead, VsCode is exposing a new command newWithCwd that allow to bind keys to open new terminal in the current file path.
{
"key": "ctrl+shift+t",
"command": "workbench.action.terminal.newWithCwd",
"args": {
"cwd": "${fileDirname}"
}
}
Top comments (0)