1

I can add a windows shortcut to open a specific folder in vscode. I just add the folder to the windows shortcut's properties target value as described here

I have remote repositories vscode extention installed and open repositories which uses virtual workspace which are just github repos. There is no local folder or local file to put in the target value of my windows shortcut's properties.

How am I able to edit a windows shortcut's properties target value to open a remote repository on github?

1
  • I am also looking for a way to have a shortcut to open a remote vscode project (in my case on linux, but hopefully the solution will work on all platforms). In my case I have a remote machine I connect to over ssh. On that machine I have docker containers running and want to open a vscode session to one of those containers and open a .code-workspace file inside it. Inception. Commented Feb 6, 2023 at 9:27

1 Answer 1

1

That following shortcut allows me to open a remote repository in vscode that makes use of virtual workspaces

"C:\Users\myusername\AppData\Local\Programs\Microsoft VS Code\Code.exe" --folder-uri "vscode-vfs://github/githubusername/githubreponame 

The various parts are

  • The vscode executable location on my local PC
  • "--folder-uri" argument to pass the virtual workspace folder
  • Virtual workspace name prepended by vscode-vfs:// where githubusername is my github user and githubusername is the name of my repository.
Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.