You can launch built-in VSCode directly from your GitHub repository by changing the URL from .com to .dev (or press "." on keyboard)
No longer able to open GitHub repositories in an online VSCode within browser by pressing "." on my keyboard?
Here's how to create a desktop shortcut to launch your GitHub Codespace directly into VSCode
My New Favorite VSCode Shortcut : Command + Enter to Commit and Push to a Repo!
I used to be able to open GitHub repositories in an online VSCode editor within my browser by pressing the "." shortcut on my keyboard.
However, it appears that this shortcut no longer works. Does anyone know how I can open a GitHub repo in VSCode in the browser directly from GitHub?
If it's no longer available, could someone confirm if GitHub has removed this feature and why it was removed?
Thanks!
This might seem obvious to some, but I really wanted to just have shortcuts to launch my different Codespaces without having to go to the website each time or launching it from inside VSCode. I imagine you can easily adapt this to other editors as well. This does require you have your editor already setup to work with Codespaces.
For Windows users:
-
Navigate to your codespace repository at GitHub Codespaces.
-
Right-click on the desired codespace and copy the URL. For example:
-
https://github.com/codespaces/orange-julius-0123456789abcde
-
-
Your unique codespace identifier is in the URL.
-
Create a new desktop shortcut with this as the address:
-
vscode://github.codespaces/connect?name=orange-julius-0123456789abcde
-
-
Double-click the shortcut to jump straight into your Codespace.
For Linux enthusiasts:
Create a desktop shortcut with ease:
-
Make a new file named
OpenCodespace.desktop, and fill it with:
[Desktop Entry] Version=1.0 Type=Application Name=Open ProjectX Codespace Exec=xdg-open "vscode://github.codespaces/connect?name=orange-julius-0123456789abcde" Icon=code Comment=Open VSCode and connect to a specific GitHub Codespace Terminal=false Categories=Development;IDE;
2. Make it executable:
chmod +x OpenCodespace.desktop
3. If xdg-open fails, calling VS Code directly might do the trick:
/usr/bin/code --url "vscode://..."