- Open Visual Studio Code terminal (Ctrl + `)
Write the Git clone command. For example,
git clone https://github.com/angular/angular-phonecat.gitOpen the folder you have just cloned (menu File → Open Folder)

- Open Visual Studio Code terminal (Ctrl + `)
Write the Git clone command. For example,
git clone https://github.com/angular/angular-phonecat.gitOpen the folder you have just cloned (menu File → Open Folder)

Another option is to use the built-in Command Palette, which will walk you right through cloning a Git repository to a new directory.
From Using Version Control in VS Code:
You can clone a Git repository with the Git: Clone command in the Command Palette (Windows/Linux: Ctrl + Shift + P, Mac: Command + Shift + P). You will be asked for the URL of the remote repository and the parent directory under which to put the local repository.
At the bottom of Visual Studio Code you'll get status updates to the cloning. Once that's complete an information message will display near the top, allowing you to open the folder that was created.
Note that Visual Studio Code uses your machine's Git installation, and requires 2.0.0 or higher.
How to open my repository from Github on Visual Studio Code?
How to view github repository code with vs code interface? - Stack Overflow
Using github and VS Code?
You can launch built-in VSCode directly from your GitHub repository by changing the URL from .com to .dev (or press "." on keyboard)
Hey, everyone! 👋🏽 new guy here. I'm learning how to use git and I want to open a repository I have on Github on Visual Studio Code for new commits. How can I do that? So far I've only worked with new repositories. Thanks in advance
There is a very cool feature to do that. When we find suitable code for our projects we can investigate the GitHub repository using vs code interface,
- It is the exact VS Code interface and that features.
- It is open with the browser tab.
- No need to clone or download that repository.
For this you need just go to a repo and press the '.' (full-stop) button. Now that repo open with vs code interface in a browser tab.

If you right-click, there is now an option to Share > Copy GitHub Permalink.