Copilot Chat in Visual Studio Code | GitHub Universe

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
[Music] thank you Ryan and thank you to all the early co-pilot chat adopters in the audience I'm Harald part of the VSCO team and I'm going to take you inside and behind the scenes of co-pilot chat in my editor let's kick off the demo small apps are fun for showcasing AI but the in reality we all work on large and more complicated apps I work on vs codee so let's contribute to its open s repo and here's our mission vs codes editor background recommends some must have shortcuts let's add co-pilot chat to that list as an essential tool to anybody's workflow which chat style though in a typical vs code fashion co-pilot chat offers a customization the face that adapts to your coding style let's start by having copilot on the left but that has the EXP explor and other views I often need dragging it to the right and the secondary Side Bar lets me keep it always on on the big screen I can also use co-pilot chat in the editor area for tap and workflow on small screens but my favorite is quick chat which I get from the command center or command shift I shortcut it provides a keyboard driven and minimal UI keeping me in the flow so I'll pick quick chat as the shortcut to recommend and to be clear this task won't be complicated but often even adding a simple feature can take hours out of your day as you try to understand the code base and figure out where things need to go copilot can help me do that so much quicker so today in copilot chat I can explicitly mention at workspace to pull in relevant information from my code base I'm going to get a rough description of what I'm looking for and watch the magic happen wait let's hit the pause button though and delve into the nitty-gritty how does copilot actually get my code AI needs just the right amount and the most relevant data for a given question cop chat achieves this with a hybrid approach first since my repos on GitHub copilot Taps into github's Knowledge Graph a semantic surge returns relevant code Snippets and metadata we're starting to roll this out to more users and more repositories next to make the search work in any workspace we layer in a local index which runs offline even for uncommitted files this uses a lexical search which means it's fast and more exact find finally vs code's language intelligence is the syntactic sugar on top it has crucial details like function signatures parameters and even inline documentation all of these are ranked sliced and summarized for the AI making copilot chat an in-depth expert of any code base so let's back to the action copal tells me the relevant code snippet that ground its answer grounding improve accuracy of responses but also makes them verifiable with links after copad sifts through the code it's a just starting in the watermark editor that's what I've been looking for let's dive in with the file open Copa can now help me make a plan by default it focuses on the current file but I could also explicitly reference other files there's another Improvement at play here that is harder to show and I can't have an AI demo without mentioning the word so since recently gp4 is used in all chat conversations we still use other models like GPT 3.5 turbo as it speed complements gp4s intelligence this multimodel approach is informed by continuous experimentation to give you the cutting Aji with the feel of a lightweight responsive tool so back to my Watermark file I've got a rough plan of what where I could do this manually but let's have copilot do it for me with inline chat hit command or control I and based on what I asked it it now pulls in symol definitions surrounding code related files and more the diff view is fully interactive with linting hovers and Rich autocomplete and since we added inline chat N9 months ago its fan base has been steadily growing developers love iterating with AI directly in their cat so much so that since September our early adopters have used co-pilot chat more often in line than in the sidebar staying flow is key talking about flow who here spends hours crafting perfect prompts for the AI just to get help yes Floy days is also about avoiding long wind and prom crafting and code responses buried and long AI responses co-pilot has commands to solve that to De my favorite command fix I need some red squiggles let's rewind and say I had attempted to write the new entry myself and got the types wrong in any chat input here with inline hitting slash gives me a list of commands these are shorthand for chores and even longer workflows Allison demoed some of them so let me close this and show you an even faster way fix is just a click away on every red squiggle open the code actions menu or hit command Dot and fix is not just the well to prompt it pulls in related problems like linting errors looks up code from stack traces it retries if the eii missed arrows on its first pass it's a lot of power behind one command not surprisingly fix is co-pilot's most used action so let's see how our change looks I'll run V code from source and here is our new favorite shortcut it's a good time to commit with co-pilot coming along check out that magical co-pilot button one click and I have my message ready I save time and can go right back to coding as I added to this file I do want to leave it a little cleaner so commit and this time I'm controlling inline chat using my voice hit the microphone button or assign of the shortcut manage entries as collection of key value pairs sweet realtime preview looks stunning and more importantly gives me time to double check copilot's approach so let's iterate with a followup rewrite entries to be alphabetically sorted clean up like that would have taken me several minutes with co-pilot chat it's done in a few seconds without typing and back to committing as you might notice you will probably commit more often even without thinking about it but why stop making commits easier copilot knows about my code and what I've changed it even drafts a PR title and description for me and that is the real power of AI in your editor removing that tedious busy work we all must do a tax on productivity that we no longer have to pay when I get that review with suggested change co-pilot can address that too even though AI suggestions are just a click away I'm still in charge of reviewing and iterating with co-pilot and there are many more smart actions saving you time in all areas of vs code when copad is installed in a terminal copal chat suggests commands in jupyter notebooks it fixes runtime errors it even Powers a smarter search in command pallet and settings customization accessibility and accessibility are what we as code users love and AI is part of it so this was my behind the scenes of three major updates how co-pilot Chad gains expert knowledge of any code base how GPD 4 is one of multiple models it picks from and how copal infuses AI in every aspect of your developer workflow all of that everything is available today in vs codes co-pilot chat all of these will also find in Visual Studio at jetbrains is ready for you to preview via wait list thank you and happy smart e coding
Info
Channel: GitHub
Views: 91,837
Rating: undefined out of 5
Keywords: github, git, git and github, github tutorial, how to use github, github for beginners, code, coding, programming, developer, software, software development, Coding efficiency, AI integration, VS Code, Copilot Chat, screen layout adaptability, GitHub Knowledge Graph, local indexing, GPT-4, contextual suggestions, error correction, commit creation, pull request management, intelligent development, productivity enhancement
Id: a2DDYMEPwbE
Channel Id: undefined
Length: 9min 47sec (587 seconds)
Published: Fri Dec 29 2023
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.