Intro to C# with GitHub Copilot in Visual Studio 2022

Поділитися
Вставка
  • Опубліковано 8 січ 2025

КОМЕНТАРІ • 59

  • @m.f.mfazrin8720
    @m.f.mfazrin8720 Рік тому +18

    Please bring an option to feed the entire project code to copilot so can get very relavant suggestions instead mismatched versions and outdated code suggestions

    • @NezamAhamed
      @NezamAhamed Рік тому

      true,, very much needed, i was going to comment this same. yesterday i had developed entire code, now i want to know how much validations should be added to it. i am asking Copilot to the read the file. it says it can read.

    • @Axelius69
      @Axelius69 Рік тому +3

      This functionality is already in vsCode but we get a gimped version for visual studio 2022

    • @Axelius69
      @Axelius69 Рік тому

      To be honest, chatGPT is better than Co pilot atm.

  • @acodersjourney
    @acodersjourney Рік тому +3

    Your channel deserves to reach even more people.

  • @chrismantonuk
    @chrismantonuk Рік тому +5

    5:27 It took longer to write the prompt than to just write the code manually

    • @CM-gi4fq
      @CM-gi4fq Рік тому

      I agree, this might be good for beginners, but intermediate to senior developers that know exactly what they are doing will just find this to be extra steps. This might be good for creating unit tests, I'm not sure.

    • @chrismantonuk
      @chrismantonuk Рік тому

      @@CM-gi4fq I’ve been trying it out this week and actually, yes it is uncannily good at writing unit tests. I don’t use the comment feature particularly but when you write out the method name it will usually suggest exactly what you’re looking for. Colour me impressed!

    • @paulembleton1733
      @paulembleton1733 9 місяців тому +1

      You saved me writing a comment, but I'll do it anyway.
      One thing it might help with, especially for someone who hasn't been classically trained so to speak, is how to describe a problem in natural language.

  • @jaiderariza1292
    @jaiderariza1292 Рік тому +9

    why you do not want string interpolation? I think is better.

    • @officialspock
      @officialspock Рік тому +4

      yeah, she keeps on deleting it and writing the same thing lol

    • @bitrotter
      @bitrotter Рік тому

      Some people find string.format to be more readable as it separates form (creating a template of sorts ) from content. This is especially useful if the formatting is very complicated or the result is technical.

  • @ferdsreyes2444
    @ferdsreyes2444 10 місяців тому

    Great tutorial goes straight to the point

  • @Arcadenut1
    @Arcadenut1 Рік тому +6

    Copilot is good and bad all at the same time. It's adding fairly useless comments (which I go back and delete after it generates the code) in the code. A lot of times it suggests code that is completely wrong (it makes up things that don't actually exist). Somethings I ask it and it just shows me my code instead of any kind of answer. The UI for Copilot needs a lot of work as well. The font choices and it's emphasis on larger text is less than ideal.

  • @retokaderli9010
    @retokaderli9010 Рік тому +5

    Is this somehow dependent on github or is this also working with code only local?

  • @officialspock
    @officialspock Рік тому +3

    6:03 you keep on deleting copilots suggestion and replacing it with exactly the same thing but an inferior version

    • @sepbla178
      @sepbla178 2 місяці тому

      believe me, there are tons of new hires at MS that have no idea what they are doing. She looks like one of those.

  • @rbhis000
    @rbhis000 10 місяців тому

    Quick and practical, thanks!

  • @Brimerland
    @Brimerland Рік тому +27

    Can you explain why you replaced the (perfectly valid) string interpolation two times in this video? Maybe you should have asked copilot about this feature if you don‘t know about it.

    • @JacobSnover
      @JacobSnover Рік тому +7

      Can you explain your condescending tone and assuming someone's ignorance, while pretending to ask a genuine question about string formatting?

    • @Brimerland
      @Brimerland Рік тому +10

      I didn't mean to be condescending. I'm sorry about that. But I'm definitely interested in why the formatting suggested by the co-pilot had to be changed.
      All that was said was that something else was expected. But I don't understand why, because the proposed code would have done exactly the same thing.

    • @eugene5096
      @eugene5096 Рік тому +9

      @@JacobSnover can you explain why you trying hard to be funny putting silly comments on valid questions ?

    • @CptWaster
      @CptWaster Рік тому +12

      @@JacobSnover That's actually a pretty valid question. It kind of hurt every time she deleted that code.
      I loved string interpolation when it was introduced in 2015. No more mismatch between template string and parameters (+ easier readability).
      With .Net6 you get a performance gain on top of that.
      It just feels like copilot as a collague suggested a very good code and she just rejected it for reasons she didn't explain.
      If she just had run the code she would have learned something new. Another nice sideeffect of features like copilot.

    • @lucaswhite12
      @lucaswhite12 Рік тому +11

      "This is... not exactly what I'm looking for..."
      me, screaming inside: It's exactly what you're looking for!!!
      My guess: she's not a coder...

  • @ONESTTEFTEO
    @ONESTTEFTEO Рік тому +3

    Looking for context aware copilot, bring an option to feed complete project to copilot so we can get accurate suggestions

    • @BigyanChap
      @BigyanChap Рік тому

      And then gradually, you want AI to eat your job? 😂

    • @ONESTTEFTEO
      @ONESTTEFTEO Рік тому

      @@BigyanChap If your confidence of your skills is that much weak, then you already lost to AI

  • @CodeNinja770
    @CodeNinja770 10 місяців тому

    Can u give one more session for how to install github copilot in visualstudio 2022 and how to use it .netcore web api projects.

  • @guptarsys
    @guptarsys 9 місяців тому

    Very informative video. Thank You

  • @ibrahimhussain3248
    @ibrahimhussain3248 Рік тому +4

    Console.WriteLine($"{student.LastName}, {student.FirstName}"); //is exactly the same as or does the exact same thing
    Console.WriteLine("{0}, {1}", student.LastName, student.FirstName); //What do you mean its not the same?

    • @R3ap4r
      @R3ap4r Рік тому +3

      Exactly, and the first one is more readable and less code to write as well

    • @Neo8019
      @Neo8019 Рік тому +3

      Agreed. The first one is more up to date. The second one feels old by now.

    • @bitrotter
      @bitrotter Рік тому

      ​@@R3ap4rThat's just your opinion. This is a simple example for sure, but some people find interpolation to be harder to parse than separating 'template' and 'content'

  • @yolshevsky
    @yolshevsky Рік тому +1

    The Scores field is nullable, so the auto generated code is still prone to exceptions.

  • @JBengaIII
    @JBengaIII 11 місяців тому +2

    How did she open github copolit chat that is what I was looking for and she just opens it with out showing you where it is

    • @rido3753
      @rido3753 11 місяців тому

      it is a separate extension that has to be installed, when you install it you can open it by going to view > copilot chat

  • @IIIIIIIIIIIllllllIIIIIIIIIII

    If I have visual studio professional and intellicode, will this auto install for me if I update vs?

  • @donepearce
    @donepearce 10 місяців тому

    You prompted for student - first name - last name, but it gave you student - last name - first name. Does it not read order?

  • @ericy91745
    @ericy91745 Рік тому

    Please bring back the support of ARM for Copilot. There are many people using Mac + Parallel to do the coding. Copilot was working fine until it requires Visual Studio 17.4 (Intel). But VS 17.4 installation forces ARM users to install ARM version only. That’s very strange when Copilot supports VS Code ARM, but not Visual Studio ARM.

  • @jayakumar2927
    @jayakumar2927 9 місяців тому

    I can't able to sign in from visual studio

  • @veteranconsultant
    @veteranconsultant Рік тому +3

    it was a mystery on how to open copilot chat, LOL!

    • @ogredev
      @ogredev Рік тому

      How did you do it? I still dont see an option for it.

    • @veteranconsultant
      @veteranconsultant Рік тому

      It doesn’t exist. Most likely an upgrade would solve this.

    • @mailmaxxxx
      @mailmaxxxx Рік тому

      @@ogredev View... Github Copilot Chat

    • @mailmaxxxx
      @mailmaxxxx Рік тому

      @@veteranconsultant View... Github Copilot Chat

    • @Proud_banda
      @Proud_banda 8 місяців тому

      @@ogredev any luck?

  • @1Eagler
    @1Eagler Рік тому

    Does copilot for vs has the same functionalities qith copilot for vs code?

    • @emilio3644
      @emilio3644 Рік тому

      Good question i guess yes. I made a few tests between Rider Copilot and VS Code on Mac and results were identical.

    • @Axelius69
      @Axelius69 Рік тому

      Nope. Vscode is loads better

  • @kvelez
    @kvelez 6 місяців тому

    Good video.

  • @codecrafter01
    @codecrafter01 Рік тому +1

    Turn up !!! 😅

  • @emilio3644
    @emilio3644 Рік тому +2

    People keep paying you but you arent improving even basics. Other tools already started doing better than copilot. In many cases Copilot even became blocker instead of helping it. I give you a simple example. thats even very very basic.
    we all know creating a c# property using by typing "prop and tab", when you turn copilot on, this shortcut is overridden and Copilot makes irrelevant suggestion whatever you try. It just keeps annoying with the suggestion.
    Please do more development less marketing. MS became more marketing than improvements. You will cry again when Google takes over your tools.

    • @Sp1tfire100
      @Sp1tfire100 9 місяців тому

      It's the problem of management culture in microsoft

  • @Netryon
    @Netryon Рік тому

    I'll say I want to make my custom pranks list again - don't you see that again. Lists like these can be created with Ctrl + F and replace because this is pretty advanced topic preparing for it every and each Aston Martin day so you never get to the point where you optimize that data so you don't have to write those unity/unit tests again - you told me, that's what you want. But now you say - No No No, I will never drive that Maserati as Robin or do own that Ferrari Bat mobile. Maybe you'll say okey, this is you project - show me how good you are at OOP, but despite all the efforts and education I'm stuck here because I might be far to old to work with these younger employees or critical game has crashed on flying to Yela en route to Grim Hex error colleagues.