vscode-terminals icon indicating copy to clipboard operation
vscode-terminals copied to clipboard

Create local terminal when connected to remote

Open d4nst opened this issue 4 years ago • 3 comments

When I am using vscode remote I like to open a terminal in my local machine. Sometimes I need to open more than one since I want to ssh to other servers different to the one I am connected with vscode. Currently, it is possible to open local terminals using Terminal: Create New Integrated Terminal (Local). However, I need to manually use this command and rename each local terminal that I want to open, which is not ideal.

I was thinking that maybe I could use your extension to open any number of local terminals when I am in a remote session. Is this supported? I can't see how to do it in the docs.

d4nst avatar Mar 03 '20 09:03 d4nst

Is this supported?

I don't know, I don't use vscode remotely, let me know if it does or if it doesn't work.

fabiospampinato avatar Mar 03 '20 11:03 fabiospampinato

Sorry, I forgot to mention that. No, it doesn't work. By default it creates a new terminal in the remote machine, which is the same thing that happens if you click on the + icon or if you call the Terminal: Create New Integrated Terminal command. The functionality must be possible since you can open a local terminal using the Terminal: Create New Integrated Terminal (Local) command.

d4nst avatar Mar 03 '20 12:03 d4nst

PR welcome for adding a "remote" property which is false by default, or maybe a "local" property which is enabled by default, whichever makes more sense.

fabiospampinato avatar Mar 03 '20 12:03 fabiospampinato