GitHub Copilot: Getting Started with Chat

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
[Music] foreign hi I'm Allison from GitHub and I wanted to give you a sneak peek of the new chat functionality we're working on powered by GitHub Copilot copilot is great for giving you code suggestions in line as you type but there was no easy way to ask questions or provide additional context until now copilot chat gives you a much richer pair programming experience right in your editor for example here's some code I've inherited with a bunch of regular expressions in it but it's poorly documented instead of pulling up a regular expression translator in my browser let's just ask copilot what they do okay looks like we have validation for email addresses phone numbers and strong passwords I always try to leave code in a better shape than when I found it so let's ask for help to make this code just a bit more readable I'll type make this code more readable not bad but I'd like some more let's ask copilot to separate out the validation functions and add more comments great that's so much better the code is now in separate functions with comments and the variables have much more meaningful names this will be so much easier to maintain going forward so let's bring it over now let's take a look at some code that isn't working and see if copilot can help me figure out why I'll ask copilot to propose a fix for the bugs in my code by looking at my comment and comparing it to the code copilot recognized that I was treating the data as comma separated rather than space separated it also noticed from the comment that I was returning the values in the wrong order and it's adding error checking that it typically sees with this type of code let's bring this code over and run it yep that works while we're here let's ask copilot to create some unit tests so we don't accidentally break the code again perfect co-pilot is analyzing the code paths that we take in our code and using context from the comment to generate unit tests to test for all branches of logic it sees this is a great start for us so we could copy this over into a test function and then build it out over time now let me show you one last thing with chat functionality right in your editor it's so much easier to stay focused and on task you can ask for help about coding Right Where You code you can even have a conversation with copilot to learn more let's ask for an example however we are deliberately constraining the prompt to ensure we're only asking questions that we detect have an intent around development so if you stray outside of programming copilot will politely decline developers all over the world are already using GitHub copilot to code faster focus on business logic over boilerplate and do what matters most building great software bringing chat to the experience will help you keep your focus but also help you experiment and learn how AI assistance can best help you my team is actively working on bringing this chat functionality to you later in the year we are just starting to get previews of copilot chat into the hands of other developers to give us feedback and help make this new version of copilot even better join the wait list if you'd like to get notified as we bring on more people I'm looking forward to seeing what you think foreign
Info
Channel: GitHub
Views: 110,198
Rating: undefined out of 5
Keywords: security, github, devops, owasp, codeql
Id: 3surPGP7_4o
Channel Id: undefined
Length: 3min 56sec (236 seconds)
Published: Fri Apr 14 2023
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.