DEV Community

Cover image for VsCode Shortcut - Open New Terminal Here
Eyal Lapid
Eyal Lapid

Posted on

3 2

VsCode Shortcut - Open New Terminal Here

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}"
    }
  }
Enter fullscreen mode Exit fullscreen mode

References

stackoverflow

Speedy emails, satisfied customers

Postmark Image

Are delayed transactional emails costing you user satisfaction? Postmark delivers your emails almost instantly, keeping your customers happy and connected.

Sign up

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay