Skip to content

Maples7/vscode-terminal-inplace

Repository files navigation

Terminal In Place

https://marketplace.visualstudio.com/items?itemName=Maples7.terminal-inplace

[VSCode Extension] Launch your own vscode terminal in the directory of your focus file.

Usage

There are 2 ways to use this extension in VSCode:

  1. Use shortcut alt+ctrl+` to launch an inner terminal whose current working directory is the directory in where your open focus file stays. As we all know, by default in VSCode, ctrl+` can toggle the inner terminal and this is unchanged. That's to say, by adding an alt, we make a candy for the inner terminal in VSCode.
  2. Open Command Palette in VSCode and find Terminal In Place command to execute.

If your open focus file stays in an existing directory, the terminal would cd to that directory automatically. Otherwise(the Welcome Page of VSCode just lays in an inexistent or a temporary directory), a standard inner terminal would be created.

See the snippet:

Snippet demo

Installation

  1. Open Visual Studio Code
  2. Press Ctrl+P to open the Quick Open dialog
  3. Type ext install Terminal In Place to find the extension
  4. Click the Install button, then the Enable button

OR

  1. Open the Extensions tab in Visual Studio Code
  2. Type Terminal In Place to find the extension
  3. Click the Install button, then the Enable button

LICENSE

GPLv3