GitHub Copilot Agents in VS Code
10:07
How to Generate GitHub PAT ?
6:05
Пікірлер
@VishalGoyal18
@VishalGoyal18 19 сағат бұрын
Thanks Ambily. I did this setup on my side and tested, and it works. This will be very useful for projects to be able to enforce their own coding guidelines.
@ambilykk
@ambilykk 19 сағат бұрын
@VishalGoyal18, Glad to hear you found it helpful!
@sandeshghule
@sandeshghule 2 күн бұрын
This is excellent video. Thanks for Sharing. Can you share the project git link shown in this video for us to try in our local playground?
@ambilykk
@ambilykk Күн бұрын
Thank you @sandeshghule. Project is a private project; but you can apply similar approach to any project available in GitHub. For sample coding standard files, please refer github.com/techrill88/KZbin-Video-Source-Code/tree/main/Coding%20Stds
@jjalexg82
@jjalexg82 3 күн бұрын
You need to talk about Copilot + XUnit setup for a bit. Copilot uses MSTest out of the box. We don't know how you got Copilot to create XUnit instead.
@ambilykk
@ambilykk 2 күн бұрын
Hello @jjalexg82, please refer the Unit test generation using Copilot Chat video, where we explained the generation of test cases based on NUnit and XUnit. kzbin.info/www/bejne/n17LoqOrbKqCppo
@jjalexg82
@jjalexg82 2 күн бұрын
@@ambilykk thank you
@rafaelbertelli89
@rafaelbertelli89 8 күн бұрын
amazing content
@ambilykk
@ambilykk 8 күн бұрын
@rafaelbertelli89 , I am glad you found it helpful. Thanks for watching.
@bkandre194
@bkandre194 12 күн бұрын
How can I generate complete sequencial daigrams for all class and also potential issues like security, performence, refactoring, Queiry tunings ?
@ambilykk
@ambilykk 12 күн бұрын
Hello @bkandre194, you will be able to generate the sequence diagrams across multiple files by passing them; but not for all files in a repo. We have several videos covering topics like security, performance, and refactoring, but these are mostly limited to specified files or selected code segments. Copilot Enterprise elevates this experience to a new level. You can check out our video on PR Code Review, which demonstrates how to review all files in a pull request. Similarly, with Copilot Enterprise, you can query across the entire repository.
@sandeepkanthala1093
@sandeepkanthala1093 14 күн бұрын
this is helpful
@ambilykk
@ambilykk 13 күн бұрын
Thank you @sandeepkanthala1093
@bkandre194
@bkandre194 29 күн бұрын
great demo ....
@ambilykk
@ambilykk 29 күн бұрын
Thank you @bkandre194
@deepakduvedi7075
@deepakduvedi7075 Ай бұрын
copilot doesn't pick all the rules in a single go and return random rules applied every time, any idea on this?
@ambilykk
@ambilykk Ай бұрын
Hello @deepakduvedi7075, it may be an issue with the coding standard file or prompt. Could you please review the Standard file - you can use copilot to construct one with specific rules and format.
@deepakduvedi7075
@deepakduvedi7075 Ай бұрын
@@ambilykk when i re-prompt why you haven’t applied certain rules, it replies I overlooked them and then it applies. Rules file is correct multi time i have to ask and it applies all then :(
@ambilykk
@ambilykk Ай бұрын
@deepakduvedi7075 , Copilot's response is influenced by the context and the prompt you provide. To get the most accurate results, review your initial prompt and make it more detailed and specific, covering all necessary rules and requirements. Just like when asking a colleague for help, the more precise your request, the more accurate the response will be.
@rjbera4154
@rjbera4154 Ай бұрын
Thanks ma'am. This video gives me some real life problems or use cases to solve in an enterprise application.
@rjbera4154
@rjbera4154 Ай бұрын
With this single video there can be so many use cases to apply to make our life easy. A big heart felt thanks to you ma'am.
@ambilykk
@ambilykk Ай бұрын
@rjbera4154, happy to hear this was useful. If you are working on documentation, refer the following video as well kzbin.info/www/bejne/g5q9fap4qNp4ndk
@bloom6874
@bloom6874 Ай бұрын
Hi ma'am, I couldn't find general introductory video on Github Copilot and Copilot X in your channel. Can you pls share the link? If it's not there, can you pls add it?
@ambilykk
@ambilykk Ай бұрын
Hello @bloom6874, please refer following two videos kzbin.info/www/bejne/qKjcdZWeltedh9k kzbin.info/www/bejne/mXSqanh4oaemZ5Y No more Copilot X; instead we have Copilot Enterprise, Copilot Extensions, etc.
@bloom6874
@bloom6874 Ай бұрын
@@ambilykk Thanks ma'am ☺
@YogaClassesOnline
@YogaClassesOnline Ай бұрын
The example that you are showing in 4:52 about code generation from a comment does not work for me. I have the same setup like you showed. But nothing happens. What I did was, i tried to write comment-like command for copilot and after that I pressed alt +. AM i doing something wrong?
@ambilykk
@ambilykk Ай бұрын
Hello @YogaClassesOnline, hope you had the Copilot extension in active status. If so, you just need to provide the comment and enter. If Copilot is not able to provide a code snippet due to any reason, start typing the code like the first word, then it provides the code completion. If you are facing the issue again, please connect with me.
@sadhusantanu
@sadhusantanu Ай бұрын
good explanation.. we can use IntelliJ call hierarchy (ctrl+alt+h) to get the caller of a method as well .. right?
@ambilykk
@ambilykk Ай бұрын
Hello @sadhusantanu, you are correct. This is just a sample scenario as part of the basic video. Please explore other topics like unit testing, refactoring, code review, etc. Most of the videos are recorded using VS Code, but they also work with IntelliJ, except for a few topics like Agents and context variables.
@venkatarathnamd6909
@venkatarathnamd6909 Ай бұрын
Good one thank you
@ambilykk
@ambilykk Ай бұрын
Glad you enjoyed it
@nagarajuyanamala3211
@nagarajuyanamala3211 2 ай бұрын
Nice explanation..😃
@ambilykk
@ambilykk 2 ай бұрын
Thank you 🙂
@anastaciavolkova2556
@anastaciavolkova2556 2 ай бұрын
Very good. I am watching these videos to get the first impression and I am contented. Thank you
@ambilykk
@ambilykk 2 ай бұрын
@anastaciavolkova2556, Glad you like them!
@javierortegon
@javierortegon 2 ай бұрын
Great explanation, greetings from Colombia.
@ambilykk
@ambilykk 2 ай бұрын
@javierortegon , Glad it was helpful
@pranavbarar
@pranavbarar 2 ай бұрын
What is the definition of Active users
@ambilykk
@ambilykk 2 ай бұрын
Hello @pranavbarar, Please refer the field description under the Response Schema section in API documentation at docs.github.com/en/rest/copilot/copilot-usage?apiVersion=2022-11-28#get-a-summary-of-copilot-usage-for-organization-members "total_chat_acceptances": { "type": "integer", "description": "The total instances of users who accepted code suggested by Copilot Chat in the IDE (panel and inline)." },
@swaroop.aaleti
@swaroop.aaleti 2 ай бұрын
Simple and precise. Thank you.
@ambilykk
@ambilykk 2 ай бұрын
You're welcome!
@JadersonGomesVieira
@JadersonGomesVieira 3 ай бұрын
Hey there! Great video, thank you a lot! I have an Enterprise license, but this button is not being showing to me... Do you know what might be wrong? Thanks again
@ambilykk
@ambilykk 3 ай бұрын
Hello @JadersonGomesVieira , Please check your copilot license by selecting your avatar on top right corner of GitHub.com > Your Copilot. If you have Copilot Enterprise, it should shows " GitHub Copilot Enterprise is active for your account". If you have an Enterprise account and facing issue, please connect with me over LinkedIn to look into it.
@CathyLiu-d4k
@CathyLiu-d4k 3 ай бұрын
Excellent one, well done and valuable, thank u.
@ambilykk
@ambilykk 3 ай бұрын
Thank you @user-db8nb5wz2z
@MrUpgradable
@MrUpgradable 3 ай бұрын
Very cool - it's a wonderful walk through of the capabilities, which seem very powerful. Thank you for sharing.
@ambilykk
@ambilykk 3 ай бұрын
@MrUpgradable , Glad you enjoyed it!
@MrUpgradable
@MrUpgradable 3 ай бұрын
Super cool walk through - Thank you
@ambilykk
@ambilykk 3 ай бұрын
Thank you @MrUpgradable
@rijalulfikri
@rijalulfikri 3 ай бұрын
Excellent series, but people still not aware of it.
@ambilykk
@ambilykk 3 ай бұрын
Thank you @rijalulfikri
@sagarbantu6982
@sagarbantu6982 3 ай бұрын
getting the 404 error after all the deployment after opening the deployment generated url
@ambilykk
@ambilykk 3 ай бұрын
Hello @sagarbantu6982 , please confirm the following: 1. Whether the workflow completed successfully. 2. Whether 2 JSON files and a text file were generated under the `app/copilot-dashboard/src/assets` folder. 3. If the Pages were configured for deployment from the `gh-pages` branch. 4. Whether the `gh-pages` branch contains an `index.html` file.
@IamAbx
@IamAbx 3 ай бұрын
Kollam!
@ambilykk
@ambilykk 3 ай бұрын
Thank you @IamAbx
@Twisti
@Twisti 4 ай бұрын
Without meaning to be too negative, I was surprised that not only CoPilot generated practically 100% useless test data, but that the presenter just ignored that fact. You are testing an add method, do you really need a test that tests if it adds ? That is the kind of thing that is the least useful to test, because if adding two regular numbers was broken, that would be detected even without tests, and is almost guaranteed to be what the developer was testing when writing the method anyways. Not only that, but it then generated ten lines of noise that just tested the same thing over and over again - if 3+4 works, it's pretty pointless to test 4+5. Instead, it should have tested: addings a negative and a positive number, adding two negative numbers, adding something to Integer.MAX_VALUE, adding a negative to max, adding two max's, adding max and min, etc. In other words, the edge cases. The CoPilot generated test data was useless, and what is worse added noise that concealed the fact that really nothing meaningful was tested here :(
@ambilykk
@ambilykk 4 ай бұрын
Thank you for your feedback! This video focuses on Unit Test generation. Check out another video dedicated to Test Data Generation, where we explore techniques for better test data creation. kzbin.info/www/bejne/mpXHaYGVicegers While Copilot, an AI tool, may produce some duplicate test data, it can be guided to generate diverse test cases with proper prompts. Remember, AI tools like Copilot complement but don't replace human expertise in developing test data based on business functions and constraints.
@koncht25
@koncht25 4 ай бұрын
Very useful. Where can i find other videos about code review (functional reivew.....)
@ambilykk
@ambilykk 4 ай бұрын
Thank you @koncht25. Currently I have few videos related to Code review; will upload new ones soon. Please refer to the current videos in the playlist GitHub Copilot for Code Review: kzbin.info/aero/PLIPPtc5KlYDPWPVz2RuT1aAerbnzlro1A
@akshaymore8593
@akshaymore8593 5 ай бұрын
nicely explain thanks mam it would help
@ambilykk
@ambilykk 5 ай бұрын
Thank you
@Tapuck
@Tapuck 5 ай бұрын
Are there no shortcuts for "simplify this" or "explain this"?
@ambilykk
@ambilykk 5 ай бұрын
Hello @Tapuck , there is no keyboard shortcuts for slash commands. You can invoke them from Copilot Chat or the context menu (select code>right click>select GitHub Copilot>select option)
@jebasanthivs
@jebasanthivs 5 ай бұрын
Can you post something for AES-256 encryption embedded with rest templates as well?
@ambilykk
@ambilykk 5 ай бұрын
Sure, will look into it 👍🏻
@jebasanthivs
@jebasanthivs 5 ай бұрын
What IDE is this?
@ambilykk
@ambilykk 5 ай бұрын
IntelliJ community edition. GitHub Copilot works with other IDEs like VS, VS Code, Pycham, etc. The same approach and prompts work in other IDEs as well
@faisalakml
@faisalakml 5 ай бұрын
hi, i job for testing and i want to run more than 1. is it possible? and how to run multiple steps? i just try using && but failed, like
@ambilykk
@ambilykk 5 ай бұрын
Hello @faisalakml , we normally run a bunch of test cases together. Please share me your testing framework details[XUnit, Unit, Selenium, etc.] to share a proper Actions workflow sample
@challasuresh5046
@challasuresh5046 5 ай бұрын
Hello mam, which version of intellij are you using? chat feature only supported from 2023 version of intellij? i am not seeing it in IntelliJ IDEA 2021.3 (Ultimate Edition)
@ambilykk
@ambilykk 5 ай бұрын
Hello @challasuresh5046 , Copilot Chat is supported from version 1.4[2022.1+]. Recommended to use the latest IDE and Plugin versions to get the latest features. You can check the version compatibility at plugins.jetbrains.com/plugin/17718-github-copilot/versions/stable
@jessweb3
@jessweb3 2 ай бұрын
Copilot chat in IntelliJ can’t use @workspace, @terminal, @vscode Which is deeply bothered me
@ambilykk
@ambilykk 2 ай бұрын
Hello @jessweb3, yes we don't have the agents concepts in IntelliJ. But, with proper prompt engineering we will be able to achieve some of them. @vscode - this is mainly for VS Code features and not relevant for IntelliJ users @terminal - returns terminal commands; we will be able to get terminal support using normal Copilot Chat by providing proper prompt like "shell script to list the files starting with sta in current directory and sub directories". @workspace - we may not able to complete project context; but can pass the related files using the '+' icon in the chat
@Rushil69420
@Rushil69420 5 ай бұрын
Koo-ber-net-eez
@ambilykk
@ambilykk 5 ай бұрын
Thank you @Rushil69420 ; just noticed the pronunciation in recording. I will be more mindful for next videos.
@Rushil69420
@Rushil69420 5 ай бұрын
@@ambilykk It’s an excellent video btw!
@ambilykk
@ambilykk 5 ай бұрын
Thank you
@pawankumar-nk2zn
@pawankumar-nk2zn 5 ай бұрын
Very well explained the simplified TDD workflow approach by Copilot 👍
@ambilykk
@ambilykk 5 ай бұрын
Glad you liked it
@munuswamy991
@munuswamy991 6 ай бұрын
Well done
@ambilykk
@ambilykk 6 ай бұрын
Thank you
@okwarealdo7910
@okwarealdo7910 6 ай бұрын
Nice!
@ambilykk
@ambilykk 6 ай бұрын
Thank You @okwarealdo7910
@computerscientist9980
@computerscientist9980 6 ай бұрын
Nice
@ambilykk
@ambilykk 6 ай бұрын
Thanks
@sanketkhandekar2221
@sanketkhandekar2221 6 ай бұрын
very useful can we use for build and deploy for pipeline
@ambilykk
@ambilykk 6 ай бұрын
Copilot Enterprise released on 27th of this month may address this requirement in future. Currently, you can do Code Review using Copilot in IDE only. Please refer the feature comparison at github.com/features/copilot
@sanketkhandekar2221
@sanketkhandekar2221 6 ай бұрын
@@ambilykk Thank you can we do code review for entire workspace ?
@ambilykk
@ambilykk 6 ай бұрын
Hello @sanketkhandekar2221 , you can ask Copilot to review multiple files using the #file context variable. But, always it is good to review one file at a time. An example prompt looks like @workspace review code in #file:binary-search.py and #file:numberVerifier.py using coding standards defined at #file:py-naming.json Upcoming Code review feature in Copilot Enterprise will review multiple files as part of the PR.
@sanketkhandekar2221
@sanketkhandekar2221 6 ай бұрын
@@ambilykk Ok thank you this annonation is not working correctly it is saying give me peace of code
@ambilykk
@ambilykk 6 ай бұрын
Hello @sanketkhandekar2221 , don't copy the prompt as it is; instead use the @workspace agent and #file context variable for picking the file. Sometimes, copy of #file will not work, you should type #file and tab to select the actual file. Please refer the Context variables video at kzbin.info/www/bejne/nnusmGuifNl8iLc
@sanketkhandekar2221
@sanketkhandekar2221 6 ай бұрын
can we invoke this
@ambilykk
@ambilykk 6 ай бұрын
Hello @sanketkhandekar2221, if you are looking for an API, it is not available now.
@sanketskhandekar
@sanketskhandekar 6 ай бұрын
Ok Thank you .
@user-fp2gp5rg8l
@user-fp2gp5rg8l 6 ай бұрын
poor example to showcase copilt test writing skills...real world apps won't have a calculator
@ambilykk
@ambilykk 6 ай бұрын
Hello @user-fp2gp5rg8l , Offering straightforward examples enhances clarity when learning a new technology. Once you grasp the fundamentals of the tool through these simple illustrations, you can confidently apply the same methodology to tackle more intricate programming constructs.
@jericopangilinan8555
@jericopangilinan8555 6 ай бұрын
Hello, I was recently installed the extension then I just want to used the chat features but it didn't do the same way just like you'd show. Thanks.
@ambilykk
@ambilykk 6 ай бұрын
Hello @jericopangilinan8555 , Copilot Chat for JetBrains IDE is in Beta now. If you have a GitHub SPOC, please ask them to enable for you. Otherwise wait for couple of weeks; GA is expected in March. docs.github.com/en/copilot/github-copilot-chat/using-github-copilot-chat-in-your-ide?tool=jetbrains_beta
@jericopangilinan8555
@jericopangilinan8555 6 ай бұрын
@@ambilykk hello thanks for the reply and info. Yup I finally understand seems the github copilot process my request for their chat features, I'm on their waitlist for the request.
@testing12521
@testing12521 6 ай бұрын
Whats the shortcut you dint mentioned. In my case its not really working
@ambilykk
@ambilykk 6 ай бұрын
For finding the next and previous suggestions in IntelliJ(Mac), I have used option key along with ] or [
@testing12521
@testing12521 6 ай бұрын
@@ambilykk windows?
@ambilykk
@ambilykk 6 ай бұрын
Alt key along with [ or ]
@testing12521
@testing12521 6 ай бұрын
@@ambilykk I tried that but not working for intellij in windows. For vscode it works
@ambilykk
@ambilykk 6 ай бұрын
I will check with Windows users and update. Meantime, another shortcut provided in IntelliJ is Ctrl key along with , or .
@Gorky25
@Gorky25 6 ай бұрын
I have to pay to use copilot?
@ambilykk
@ambilykk 6 ай бұрын
Yes, you have to pay for Copilot. Please watch the latest video on Copilot Versions - kzbin.info/www/bejne/qKjcdZWeltedh9k
@VishalGoyal18
@VishalGoyal18 6 ай бұрын
Hi Amily - I tried following command "@workspace where all is the class BlogAppModule used in my codebase." and it gave me this response "I'm sorry, I can't answer that question with what I currently know about your workspace. As an AI, I don't have access to your actual codebase or the ability to perform a search across it. However, you can use the "Find All References" feature in Visual Studio Code to find all usages of the BlogAppModule class." This did not work as you have shown in the video. Can you advise what could be wrong ?
@VishalGoyal18
@VishalGoyal18 6 ай бұрын
Extremely useful tutorial Amily
@ambilykk
@ambilykk 6 ай бұрын
Glad it was helpful!
@VishalGoyal18
@VishalGoyal18 6 ай бұрын
Excellent tutorial. Very useful. Thanks for creating this Ambily.
@ambilykk
@ambilykk 6 ай бұрын
You're very welcome!
@mohitsirohi99
@mohitsirohi99 7 ай бұрын
Great demo
@ambilykk
@ambilykk 7 ай бұрын
Thank you
@trannhathungnguyen352
@trannhathungnguyen352 7 ай бұрын
Very helpful ❤
@ambilykk
@ambilykk 7 ай бұрын
Thank you
@Farshid_Hesami
@Farshid_Hesami 7 ай бұрын
Thank you so much for share a video
@ambilykk
@ambilykk 7 ай бұрын
Glad to know it's helpful