
It knows this because it's inspecting the import which is a node module.īut with Remote Repositories, we're looking directly at GitHub and the node_modules folder never ever gets pushed to GitHub unless you are me 10 years ago. For instance, if you started writing a fetch, VS Code will help you with that because it knows about fetch.īut you do not get the intellisense on project files that VS Code gives you when it runs your project locally.įor instance – locally, VS Code knows about useEffect which comes from the react import. Because you essentially are.Īs far as the editing goes, you get much of what you would expect in VS Code. This is the same as if you were editing the file directly on GitHub. You don't have to push them because you are already on GitHub.

In order for the changes to be saved to the repo, you'd have to commit them from the source control view. They aren't automatically committed to GitHub. You have full editing capabilities with a big difference being that you don't have to save anything. Ok – so scary security warnings dismissed, what can we do here? How to Work with a Remote Repository You have to tell VS Code that it's cool, you know and trust this code and you're 100% sure it's not going to shutdown your oil pipeline. This is part of the new Trusted Workspace settings in VS Code.īy default, VS Code now turns off Tasks, debugging, some workspaces settings and any extensions that might try and execute something the first time you open a folder. You'll notice disclaimers about "some features" not being available and that you are in "Restricted Mode".

You're looking at it on GitHub through the window of VS Code. VS Code will reopen and you'll see that repository just like you were working with it locally.

The third option lets you open a Pull Request branch so you can pretend to thoroughly review it.

You can paste in the URL to a GitHub repo if you happen to just have that hanging around on your clipboard (weird) OR you can browse GitHub by selecting "Open Repository from GitHub". You can also get to this option from the Command Palette if clicking on things with a mouse is too much trouble. If you have other Remote extensions for VS Code installed, you'll see a lot more options in this list, so just search for the right one. You'll see a new option for "Open Remote Repository". To open a GitHub repo, click on the green indicator in the lower left-hand corner of VS Code.
