Making Better Hacks Faster With GitHub Copilot (1)
Making Better Hacks Faster With GitHub Copilot (1)
Hacks, Faster
with GitHub Copilot
Hey! I’m Alberto.
● I’m a coach at MLH.
● I work as Fronted Developer at Bego.
● I study mechatronics engineering at the IPN.
● I love talking about custom keyboards or other PC
related topics.
● Photography enthusiast.
@alberthor47
linktr.ee/alberthor47
GitHub Copilot
Welcome @MLH, I’m your Copilot and I’m here to help you get things done faster.
I'm powered by Al, so surprises and mistakes are possible. Make sure to verify any generated code or suggestions.
MLH
What should we talk about in a presentation about getting started with GitHub Copilot at hackathons?
GitHub Copilot
As an Al programming assistant, I can provide an outline for a presentation about GitHub Copilot:
Free Download
for your system
code.visualstudio.com
Ctrl-⇧-P / ⌘-⇧-P
Opens the Command Palette.
Search for
GitHub Copilot
Install the Copilot Extension
Select Install
Activate Copilot
https://hackp.ac/pack
Using GitHub Copilot
Starting a Project
Clone:
mlh/copilot-starter
Open app.py
Using Copilot to Explain Code
Ctrl-I / ⌘-I
Opens GitHub Copilot
Type /explain
Seeing the Code in Action
Ctrl-⇧-P / ⌘-⇧-P
Opens the Command Palette.
Ctrl-⇧-P / ⌘-⇧-P
Opens the Command Palette.
Type
pip install -r requirements.txt
Seeing the Code in Action
Type
python -m flask run --debug
Seeing the Code in Action
‼ 🤯
Fixing the Error
Ctrl-I / ⌘-I
Opens GitHub Copilot
Type /fix
Fixing the Error
Ctrl-I / ⌘-I
Opens GitHub Copilot
Type /fix
Fixing the Error
🥳
Adding to the Program
Ctrl-I / ⌘-I
Opens GitHub Copilot
Type
add a route that shows
hours since the epoch
Adding to the Program
Ctrl-I / ⌘-I
Opens GitHub Copilot
Type
add a route that shows
hours since the epoch
Pairing with Copilot
Tab ↹
Pairing with Copilot
Tab ↹
Next Steps
Remember: Copilot Makes Errors
Copilot is built on OpenAI’s GPT-4 model.