Jump from VS Code to GitHub in one click.
OctoLink is a Visual Studio Code extension that lets you instantly open your current file, line, or selection directly on GitHub — no manual browsing, no copy-paste URLs.
It automatically detects your repository, branch, and selection to build the exact GitHub link for you.
| Feature | Description |
|---|---|
| 🔗 Open on GitHub | Opens the current file on GitHub at the same branch and selection. |
| 🧭 Copy Permalink | Copies a permalink (commit-based URL) to the clipboard for easy sharing. |
| 🚀 Open Related Pull Request | Detects and opens the active branch’s pull request — or lets you create one instantly. |
| 📂 Open Repo Dashboard | Jump directly to Issues, Actions, or Discussions pages. |
You can install OctoLink from the Visual Studio Code Marketplace or directly within VS Code:
- Open Extensions (
Ctrl+Shift+XorCmd+Shift+X). - Search for OctoLink.
- Click Install.
- Profit 💰 (and speed).
| Command | Description |
|---|---|
OctoLink: Open on GitHub (Branch) |
Opens the file on GitHub for the current branch. |
OctoLink: Open on GitHub (Permalink) |
Opens the file at the exact commit SHA. |
OctoLink: Copy Permalink |
Copies the permalink to your clipboard. |
OctoLink: Open Related PR |
Opens the GitHub pull request for the current branch (if any). |
OctoLink: Open Repo Dashboard |
Opens your GitHub repo’s main page, Issues, or Actions tab. |
You can access these from:
- The Command Palette (
Ctrl+Shift+P) - The Editor title bar
- The File Explorer context menu
- No need to switch tabs or navigate manually.
- Works seamlessly with GitHub Enterprise and private repos.
- Lightweight, fast, and built for developers who love clean tools.
- Because the Octocat deserves its own teleport button.
- TypeScript
- VS Code Extension API
- Node.js Git Integration
- GitHub REST API
Contributions are more than welcome!
- Fork the repo
- Create your feature branch (
git checkout -b feature/amazing-thing) - Commit changes (
git commit -m 'Add amazing thing') - Push your branch (
git push origin feature/amazing-thing) - Open a Pull Request 🚀
MIT © Emanuele Bartolesi
Made with ❤️ and ☕ by developers, for developers.
