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

Image of Timescale

🚀 pgai Vectorizer: SQLAlchemy and LiteLLM Make Vector Search Simple

We built pgai Vectorizer to simplify embedding management for AI applications—without needing a separate database or complex infrastructure. Since launch, developers have created over 3,000 vectorizers on Timescale Cloud, with many more self-hosted.

Read full post →

Top comments (0)

Eliminate Context Switching and Maximize Productivity

Pieces.app

Pieces Copilot is your personalized workflow assistant, working alongside your favorite apps. Ask questions about entire repositories, generate contextualized code, save and reuse useful snippets, and streamline your development process.

Learn more