Prompting with Copilot

Поделиться
HTML-код
  • Опубликовано: 5 фев 2025

Комментарии • 16

  • @iChrisBirch
    @iChrisBirch Год назад +11

    From trial and error I had suspected that having particular files open would help with context. I was also directly prompting (both in the chat window and inline comment) "use the open file ..." but nice to see I don't have to directly specify that. Thanks for the examples and straightforward presentation.

  • @JoseAguilar-vt9zt
    @JoseAguilar-vt9zt Год назад +1

    In my case something I have been doing is writing examples of the input and outputs expected of a method/function as comments (part of the function documentation). Copilot picks it up and generates a method that works many times. And the method is then well documented as well, as a bonus.

  • @modoulaminceesay9211
    @modoulaminceesay9211 Год назад +2

    I have tried the copilot with vscode insider best thing to ever happen to me

  • @jonathan10543
    @jonathan10543 Год назад +10

    I always keep too many tabs open!! I'm already getting better results after closing some files. Thanks!

  • @lako2023
    @lako2023 Год назад +8

    For small one-off scripts like this Copilot works. For real projects though there needs to be proper information what Copilot understood about that project and which files it has processed to gain that information. We have lots of configuration files for e.g. linters as well as naming standards, plenty of additional rules for the structure of code, comments etc. (which can't be defined in a configuration file but have separate tests). It's completely unclear if Copilot understands any of that, sometimes I get good suggestions while working in a file, in many cases the code though is really subpar (too basic, too different etc.).
    Why not chat with Copilot on initialization in a project to give it more context? If it is unsure about something (e.g. naming of variables, methods etc. in the project), Copilot could just ask the user and then present it's understanding in a tab or rather a new configuration file which could be synced to other devs.

    • @PamelaFox
      @PamelaFox Год назад +1

      Ah, interesting observation re naming standards. I think it'd be worth experimenting with explicit instructions at the top of file like "This file follows the naming conventions from standards.txt" and opening "standards.txt" at same time. It'd be great if you didn't have to provide that, but I suspect that right now Copilot isn't getting all that context.

  • @codecaine
    @codecaine Год назад +1

    Excellent presentation

  • @gillesashley9314
    @gillesashley9314 Год назад +1

    Seems the next skill as developers is to learn how to use AI tools. Done!

  • @snithfferx
    @snithfferx Год назад

    I feel the lack of languages, but as many, open the files base that I need to use, give copilot a good context, buuut... it take a bit of time to copilot get what you are trying to do. I talking about PHP by the way.
    Hope some day this could improve.

  • @lostpianist
    @lostpianist Год назад

    Great, thank you.

  • @systechadmin8368
    @systechadmin8368 Год назад

    Is there subscription plan for educational institute ?

  • @lostpianist
    @lostpianist Год назад

    What famous scientist lady is in the middle portrait behind you? Is it Jocelyn Bell?

  • @feeltheeffect85
    @feeltheeffect85 Год назад

    Mam when is the copilot x getting released?

  • @YousefSh
    @YousefSh Год назад +1

    talk for talk in talks if tag in talks tag

    • @JBJHJM
      @JBJHJM Год назад

      sounds kinda poetic huh? 😂

  • @Netryon
    @Netryon Год назад

    Nobody do anything here anything with python unless you are music reviewer in capital.