A collection of files and links curated to help demonstrate features available in Copilot X.
Interested in signing up for our Copilot X experiments, the following page allows you to sign up for lots of different experiements.
Visit https://gh.io/copilotx
Filename | My usage |
---|---|
utils.py | I use this to show some of the core features of Copilot Chat. The file comes from the awesome YouTube video that Allison (@2percentsilk) recorded. Watch the video for the use cases. |
parse_expenses.py | Also from the awesome video mentioned in the previous row |
test.asm | I like to show Copilot Chat translating this Assembly language into Python |
genericListener.cob | I usually show Copilot Chat translating this COBOL into Java |
vulnerable.php | I ask Copilot Chat if this code is secure. It tell me that it's not. I then ask Copilot Chat to fix the code. |
transaction.js | I use this to show Chat rewriting the calculateTax function to look up the tax rate. "calculateTax needs to take the zip code and look up the tax rate". Note that it will likely invent an API. |
login-service.ts | Ask Copilot Chat to add a function to check if a password has been breached. It will usually suggest code to call the haveibeenpwnd API. Note this also uses security-database-service.ts so the code is a little cleaner. |
obfuscated.c, obfuscated.java | Ask Copilot chat to explain the code. The first is obfuscated C code that does strange things with pointers, but Copilot seems to be able to interpret it. The second is Java with unreadable class and variable names, however Copilot identifies that it's just calculating the area of a circle. A great second step is asking to make it readable. |
mystery.py | An extreme example of what Copilot Chat can do (likely because it's a famous example). Ask it to explain the code. Ideally run the code (you'll need python 2.7 - run py -2.7 mystery.py ) then open the resulting M.bmp file which should get built on screen as you watch. |
infra/azuredeploy.json | App modernization demo - ask chat if it's the latest node version, find the line and use inline chat to upgrade it. Ask if this can be converted to bicep, then ask it to do that. |
We’re exploring a way to get you the information you need, faster. By surfacing the most relevant content for questions with tailored summaries that help connect the dots, Copilot for docs saves developers from scouring reams of documentation.
Open Copilot4docs using https://copilot4docs.githubnext.com/
Open Githubnext using https://githubnext.com/