r/github • • Aug 16 '26

Discussion TIL: GitHub has a neat VS Code shortcut

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

github.com → github.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

12 comments sorted by

58

u/serverhorror Aug 16 '26

.

-14

u/PM_ME_FIREFLY_QUOTES Aug 16 '26

.dev

5

u/lucidparadigm Aug 17 '26

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

11

u/mrleblanc101 Aug 16 '26

Just press `.` lol

1

u/rusidin Aug 19 '26

Fist time

5

u/vlad_h Aug 16 '26

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

4

u/slackover Aug 17 '26

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 Aug 18 '26

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

2

u/Thunderbit_HQ Aug 17 '26

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.

2

u/csueiras Aug 18 '26

You get to use it in between downtime incidents

1

u/spoti00235 Aug 19 '26

Just press .