BM: Baca dalam Bahasa Melayu
World 9: Power Tools
github.dev and Codespaces
You will learn: how to edit code in your browser, and when you need a cloud computer.
The problem
You are at a library computer. No Git, no code editor. Your README has a typo. Your teacher checks it in an hour.
Pick one answer.
Watch
Tap each point on the timeline.
On any repo page, press the . key. A code editor opens in your browser. This is github.dev: A code editor in your browser. Press . on a repo page to open it. It has no terminal.. It is free. You just need to be signed in.
Try it
github.dev looks like VS Code. Tap each glowing dot.
Tap the glowing dots to explore.
0 of 4 explored
Hint
There are 4 dots. One is at the very bottom.Watch
github.dev has no terminal, so it can’t run code. Need that? Open a Codespace: A computer in the cloud, set up for your repo, with an editor and a terminal.: a cloud computer, set up for your repo. It needs a GitHub account and has usage limits.
Try it
Which one fits? Sort each card.
Drag a card into a box. Or tap the card, then tap the box.
Predict
You must run npm test before you push. Which one do you open?
Pick one answer.
Check
Good Codespace habit, or needs work? Swipe each one.
Swipe right for good, left for needs work. Or use the buttons.
Stop your Codespace when you finish
You did it!
You can now edit in a browser, or code in the cloud.
Go deeper (optional)
Press > instead of . to open github.dev in a new tab. Or change github.com to github.dev in the address bar. A Codespace can set itself up from a dev container file. Idle Codespaces stop by themselves after a while.
Bahasa Melayu
Anda guna komputer di perpustakaan. Tiada Git, tiada editor kod. README anda ada salah ejaan. Cikgu akan semak dalam sejam lagi.
Pada mana-mana halaman repo, tekan kekunci .. Editor kod terbuka dalam pelayar anda. Inilah github.dev. Ia percuma. Anda cuma perlu log masuk.
github.dev nampak macam VS Code. Ketik setiap titik yang bercahaya.
github.dev tiada terminal, jadi ia tak boleh jalankan kod. Perlukan itu? Buka Codespace: komputer di awan yang siap untuk repo anda. Ia perlukan akaun GitHub dan ada had penggunaan.
Yang mana sesuai? Susun setiap kad.
Anda mesti jalankan npm test sebelum push. Yang mana anda buka?
Tabiat Codespace yang bagus, atau perlu baiki? Leret setiap satu.
Kini anda boleh edit dalam pelayar, atau tulis kod di awan.
You finished this before. Practice is always welcome!
Official docs: The github.dev web-based editor · What are GitHub Codespaces? · gh codespace
You've learned for 25 minutes. A short break helps your brain.
Sprint done! Great focus. Stretch for a minute?