A VS Code extension that opens a new terminal in the directory of the currently active file.
Features
Adds a command Open Terminal Here that launches a terminal in the folder of the active file.
Names the new terminal after the file's folder (relative to the workspace when available).
Command palette entry is available only when a file-backed editor is focused.
Usage
Open a file or select a file/folder in VS Code.
Run Open Terminal Here from the Command Palette (⇧⌘P / Ctrl+Shift+P) or right-click and choose Open Terminal Here from the editor or Explorer context menu.
A new terminal tab appears, using the directory of the active file or selected item as its working directory.
Development
npm install to install dependencies.
npm run compile to build the extension.
Run the extension locally
Install dependencies with npm install.
Start a build/watch process in a terminal with npm run watch (or run npm run compile for a one-time build).
Open this folder in VS Code and press F5 (or run Debug: Start Debugging) to launch an Extension Development Host with the extension loaded.
In the Extension Development Host, open a file and run Open Terminal Here from the Command Palette to verify behavior.