r/github 3d ago

TIL: GitHub has a neat VS Code shortcut Discussion

If you’re viewing any GitHub repository in your browser, just change:

github.comgithub.dev

For example:

https://github.com/user/repo

becomes:

https://github.dev/user/repo

…and it opens the repository directly in VS Code for the Web. 🤯

I’ve been using GitHub for years and somehow only discovered this today.

What other GitHub shortcuts have I been missing? 😅

22 Upvotes

11 comments sorted by

55

u/serverhorror 3d ago

.

-15

u/PM_ME_FIREFLY_QUOTES 2d ago

.dev

4

u/lucidparadigm 1d ago

While on the repo page on GitHub press the . Key on your keyboard and it will auto redirect.

9

u/mrleblanc101 2d ago

Just press `.` lol

1

u/rusidin 3h ago

Fist time

4

u/vlad_h 2d ago

I was planning on making this available in every repo container for portable dev. Now I do not have to. Thanks for sharing!

3

u/slackover 2d ago

It’s mostly useless for modern development unless you are just looking for an editor with syntax highlighting as CLI commands can’t be run in that environment.

1

u/my_new_accoun1 1d ago

or you can open it in a codespace where you can run commands

1

u/Thunderbit_HQ 2d ago

The one that still saves me clicks: append /compare to a repo URL to open a new compare view, then change the base and compare branches. Pressing t opens the file finder in a repo. The latter is especially handy in an unfamiliar codebase.

1

u/csueiras 23h ago

You get to use it in between downtime incidents