GitHub Copilot for PyCharm: Does it work?

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hey how's it going everybody in this video we're going to check out the state of GitHub co-pilot for py charm so as most of you know GitHub co-pilot is being developed by Microsoft and they also own VSS code so it only makes sense that GitHub co-pilot is being developed vs code first and all the other editors come second and that is also the case for py charm because even though GitHub copilot exists for py charm the state of development isn't as advanced as it is in VSS codee so there are going to be a couple of shortcomings which we'll look into in just a moment so if you have not yet gotten getup co-pilot for pycharm all you got to do is go on files settings and then in the plugin section you can go ahead and search for co-pilot and as you can see I already have co-pilot installed so that's nice and one of the first things that you'll notice is that one of the key features that you have in vs code is missing in pie charm so if you go on to the site sidebar this is where you would in vs code at least have a chat window where you can chat directly with um GitHub copilot so over here this is still in private beta this still does not exist and this is one of the sort of main features that you do have in vs code so in vs code you can go ahead and ask any question in the sidebar such as what is a string and then subsequently it is going to give you an answer uh another thing that I really like about the vs code implementation is that you have these agents so for example if I write at vs code I can ask any specific question relating to the editor vs code for instance how do I change the theme how do I change the theme and it gives me an answer with a um function that I can go on to that directly change the the that changes the theme so for example over here you can see it show um has this button showing command pallet and it directly navigates me to the marketplace for themes which is super nice and then I can you know flick through these individual themes allowing me to change them so both of these features are not yet implemented in the pie charm version so you will not have any possibility to access the um agents um so something along the lines of at py charm change theme uh will not work because the sidebar and the chat window have not yet been developed but let's take a look at some of the things that do work so what does work are the regular sort of code suggestions that you would have so if I'm going to you know make a function that calculates uh the days between two dates I can write something along the lines of calculate days between two dates and then after I Define a function it is going to give me a suggestion now one thing that you have in vs code is that you can hover over the code and it gives you different suggestions now that does not work so you can see that I'm hovering over the code and it doesn't seem to be giving me any other suggestions now if we just go ahead and call this function that I just created so let me make a comment and call function um then it's going to suggest this this um print statement that calculates the difference between two dates which is exactly what we want and we're simply going to run it and you can see that it gives me three days between these two dates so that's um correct but um if I go ahead and make a mistake in the code so let me just take out one bracket this is going to give me an error and then if I go ahead and try and run it again it is going to give me the syntax error now what's nice in vs code is that you have the um terminal fix it function that gives you this small sort of Icon next to the syntax error and it fixes it for for you when you click on it so you don't have that in py charm yet either so as you can see there are still quite a few things that are missing in the py charm version of GitHub copilot that you do have in the vs code version um I hope they implement it soon personally I just prefer coding in Python and uh vs code isn't the editor that I would usually go to to code in Python and one thing that I do want to point out is at the bottom over here it says that there is an update for GitHub co-pilot uh I don't know why the message is stuck down there but I do have the most recent version as of today so um all the information that you got is recent it's just that I just noticed this message all right so we're going to leave it at that and yeah see you in the next video
Info
Channel: Max on Tech
Views: 7,716
Rating: undefined out of 5
Keywords:
Id: _lwkv49qGTo
Channel Id: undefined
Length: 4min 56sec (296 seconds)
Published: Fri Jan 05 2024
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.