github1s trick

Feb 11 2021


Today I came across a neat trick on how to read the github public repository using an 1s in the github url.

What was the issue?

Let's say I want to read the code for my repo at UnitTestingReactUsingJestAndEnzyme

But I will have to open files one by one, and then go back to the root level to access any other file. But today I learned that by altering the URL slightly, we can get experience of an online VSCode editor.

The code is readonly, but it is very helpful as it helps us navigate through code and folder structure the way we actually use while coding on any IDE.


Check the new URL below:

Notice the extra 1s after github in the URL. That, dear friends, is the trick. So neat, and super helpful, right?


Danny Thompson tweet showing the trick