A simple VS Code extension that adds a right-click option to open a terminal from the selected folder in the file explorer and adds a keyboard shortcut for opening a terminal at the current file's directory.
Features
Right-click on any folder or file in the Explorer view and select "Open Terminal Here" to open a terminal at that location
Use the keyboard shortcut Ctrl+Shift+T to open a terminal at the directory of the currently active file
Requirements
VS Code 1.60.0 or higher
Installation
From VSIX file
Download the .vsix file from the releases
Open VS Code
Go to Extensions view (Ctrl+Shift+X)
Click on the ... menu in the top-right of the Extensions view
Select "Install from VSIX..."
Navigate to the downloaded .vsix file and select it
From source
Clone this repository
Run npm install to install dependencies
Run npm run package to create a .vsix file
Follow the steps above to install the extension from the VSIX file
Usage
Context Menu
Right-click on any folder or file in the Explorer view
Select "Open Terminal Here" from the context menu
A new terminal will open with the working directory set to the selected location
Keyboard Shortcut
Open any file in the editor
Press Ctrl+Shift+T
A new terminal will open with the working directory set to the directory of the active file
Extension Settings
This extension contributes the following settings:
workbench.action.terminal.newWithCwd: Command used by the keyboard shortcut to open a terminal at the current file's directory
Known Issues
None at this time.
Release Notes
1.0.0
Initial release of Open Terminal Here
Add right-click context menu option to open terminal at selected location
Add keyboard shortcut to open terminal at current file's directory