Slide 1

Slide 1 text

GitHub Copilot has come to stay GitHub Copilot and GitHub Copilot Chat help developers to speed up their development workflow. Once you’ve used the tools, you won’t want to be without them. A field report peppered with valuable tips and short demos. Microsoft Azure Zürich User Group Meetup, 13.02.2024

Slide 2

Slide 2 text

Agenda 1. About me 2. About GitHub Copilot 3. Demo 4. A summary of my experiences 5. Tips & Tricks 6. GitHub Copilot for Enterprises 7. Questions? 8. Links

Slide 3

Slide 3 text

About me I’m a passionate software engineer interested in C# / .NET , Azure , DevOps , DevSecOps , automation topics and new technologies. Software Engineer at isolutions blog.rufer.be rufer7 in/marc.rufer @rufer_13

Slide 4

Slide 4 text

About GitHub Copilot

Slide 5

Slide 5 text

What is GitHub Copilot? «Your AI pair programmer» «The world's most widely adopted AI developer tool» Pricing License Price Business 19$ per user / month Enterprise 39$ per user / month Supported IDEs

Slide 6

Slide 6 text

Features GitHub Copilot - Suggests code completions and whole lines or blocks of code GitHub Copilot Chat - Chat assistant powered by GitHub Copilot directly in your IDE GitHub Copilot for CLI - Assistant for the command line [Copilot Enterprise] GitHub Copilot for Docs - Getting personalized answers that are grounded in your organization’s documentation, with inline citations [Copilot Enterprise] GitHub Copilot for Pull Requests - Suggests descriptions and helps reviewers reason about your changes More about GitHub copilot projects (products, prototypes, upcoming stuff, …) at GitHub Next An overview of the most important features of GitHub Copilot

Slide 7

Slide 7 text

Demo Demos can fail due to the unpredictability of AI ;)

Slide 8

Slide 8 text

A summary of my experiences

Slide 9

Slide 9 text

20% via GIPHY 80% via GIPHY

Slide 10

Slide 10 text

+ Code completion Writing documentation Implementing unit tests Code explanation Translation inside IDE Writing commit messages Rewrite code in another programming language - Fixing code Implementing unit tests from scratch Suggestions with no or not enough context Very specific business logic

Slide 11

Slide 11 text

To be considered Quality of code base The more code you take over, the more you have to take care of quality Danger of repeating yourself

Slide 12

Slide 12 text

Tips & Tricks

Slide 13

Slide 13 text

General Open related and relevant files as tabs in your IDE Copy relevant content you want to use into your clipboard GitHub Copilot Shortcuts Tab Accept suggestions Esc Reject suggestion Ctrl + Enter Open panel with 10 suggestions Alt + Closing square bracket Next suggestion Alt + Opening square bracket Previous suggestion

Slide 14

Slide 14 text

GitHub Copilot Chat Shortcuts Ctrl + i - Inline chat Shortcuts in chat /doc - Write documentation /explain - Explain code /fix - Fix code /tests - Write tests GitHub Copilot for CLI Commands gh copilot explain - Explain a command gh copilot suggest - Suggest a command for your use case gh copilot config - Configure opt-in settings of GitHub Copilot

Slide 15

Slide 15 text

GitHub Copilot for Enterprises

Slide 16

Slide 16 text

Prerequisistes GitHub Enterprise and GitHub organization (GitHub enterprise licenses are required for all members) GitHub Copilot Business or Enterprise license Important Features SSO integration with Microsoft Entra ID Enterprise managed users Enterprise settings Enable duplication detection Disable telemetry Exclude projects / repositories from GitHub Copilot Pricing see GitHub pricing Challenge in Enterprise Scenarios Customers that do not want that their code is sent to GitHub Copilot service

Slide 17

Slide 17 text

Questions?

Slide 18

Slide 18 text

Links GitHub Copilot GitHub Next GitHub Blog Getting started with GitHub Copilot Getting started with GitHub Copilot in VS Code Configuring content exclusions for GitHub Copilot Master GitHub Copilot with 101 courses 10 unexpected ways to use GitHub Copilot In-depth review of how the GitHub Copilot Chat extension works GitHub Developer Newsletter New GitHub Copilot Research Finds 'Downward Pressure on Code Quality' + Discussion

Slide 19

Slide 19 text

The End Thank you for having me!