GitHub for Visual Studio enables easy navigation to code that exists on GitHub directly from the Visual Studio code editor.
- Open a solution in a GitHub repository.
- Open Solution Explorer by clicking on its tab, or via the View menu.
- In Solution Explorer, double click on a file to open it in Visual Studio code editor.
- In the code editor, highlight the section of text that you want to view in the browser.
- Right click and select Open on GitHub from the GitHub submenu.
- Your browser will open and navigate to the code on GitHub.
- Right click and select Copy link to clipboard from the GitHub submenu. The URL will be copied to the clipboard.
- Paste the URL into your browser to view it on GitHub.
- Right click and select Blame from the GitHub submenu.
- Your browser will open and navigate to the code in blame view on GitHub.