5 New VS Code AI Features & Settings You Need To Try Today

00:10:04
https://www.youtube.com/watch?v=EpmxbAxOe4A

Summary

TLDRO vídeo presenta seis novas características de IA en VS Code que transforman a forma de traballar co código. Entre elas, destaca a instalación simplificada de servidores MCP, a automatización de comandos en modo axente, e a capacidade de xerar instrucións que analizan o código. Tamén se menciona a opción de desactivar temporalmente as suxestións de código e a utilización de modos de chat personalizados para optimizar a interacción con GPT-4. Estas características están deseñadas para mellorar a produtividade e a experiencia de desenvolvemento en VS Code.

Takeaways

  • 🚀 Novas características de IA en VS Code.
  • 🔧 Instalación fácil de servidores MCP.
  • 🤖 Automatización de comandos en modo axente.
  • 📜 Xerar instrucións para mellorar a interacción co código.
  • ⏳ Posibilidade de desactivar suxestións temporalmente.
  • 💬 Modos de chat personalizados para GPT-4.

Timeline

  • 00:00:00 - 00:10:04

    O vídeo presenta novas características de IA en VS Code, destacando seis funcionalidades que melloran a experiencia de uso. A primeira é a sección de servidores MCP, que facilita a instalación e visualización de servidores como GitHub, Docs e outros. A continuación, explícase como usar o modo axente para automatizar comandos como .NET build, permitindo que os usuarios engadan comandos á lista de permitidos para evitar solicitudes de confirmación. Tamén se menciona a opción de aumentar o número máximo de solicitudes antes de que se solicite continuar, o que é útil para operacións prolongadas. Outra característica é a función de xerar instrucións, que analiza o código e actualiza as instrucións do co-pilot. Ademais, o vídeo destaca a nova opción de completar código, que permite aos usuarios desactivar temporalmente as suxestións de completado para manter o fluxo de traballo. Finalmente, menciona a repositorio de co-pilot en GitHub, que ofrece instrucións personalizadas e modos de chat para optimizar o traballo en modo axente. O presentador anima aos espectadores a compartir as súas características favoritas nos comentarios.

Mind Map

Video Q&A

  • Que son os servidores MCP en VS Code?

    Son servidores que permiten integrar diferentes ferramentas e servizos dentro de VS Code.

  • Como se instalan os servidores MCP?

    Pódense instalar desde a sección de extensións en VS Code, onde se pode navegar e seleccionar os servidores desexados.

  • Que é o modo axente en VS Code?

    É un modo que permite automatizar tarefas e comandos durante o desenvolvemento.

  • Como se pode automatizar a execución de comandos en modo axente?

    A través dunha lista de permitidos e denegados nas configuracións de GitHub Copilot.

  • Que é a función de 'xerar instrucións'?

    Analiza o código e actualiza as instrucións de Copilot para mellorar a interacción co código.

  • Como se pode desactivar as suxestións de código temporalmente?

    Pódese usar un botón de 'snooze' para desactivar as suxestións por un tempo determinado.

  • Que son os modos de chat personalizados en Copilot?

    Son configuracións que permiten definir comportamentos específicos para diferentes tarefas dentro do modo axente.

  • Como se pode optimizar o uso de GPT-4 en modo axente?

    Usando modos de chat personalizados que melloran a planificación e execución de tarefas.

View more video summaries

Get instant access to free YouTube video summaries powered by AI!
Subtitles
en
Auto Scroll:
  • 00:00:00
    New AI features are being added to VS
  • 00:00:02
    Code every single day just about. And I
  • 00:00:06
    want to show you five. Yes, five. Okay,
  • 00:00:08
    actually six if you stick around for a
  • 00:00:09
    bonus one at the end. New features that
  • 00:00:12
    I think you're absolutely going to love
  • 00:00:14
    that change the way to use agent mode
  • 00:00:16
    and code completions every single day
  • 00:00:18
    inside of VS Code. So, let's get into
  • 00:00:20
    it.
  • 00:00:23
    [Music]
  • 00:00:30
    All right, let's talk about MCP servers.
  • 00:00:33
    First and foremost, it's easier to see
  • 00:00:35
    what you have installed either inside
  • 00:00:37
    your project or as a user inside of VS
  • 00:00:39
    Code and also install them. If you go
  • 00:00:41
    over to extensions, you can see, of
  • 00:00:43
    course, your installed and recommended
  • 00:00:44
    extensions. You'll also see a new MCP
  • 00:00:47
    server section here. Now, I don't have
  • 00:00:48
    any installed at a user level or inside
  • 00:00:51
    of my project. So I can click on this
  • 00:00:53
    MCP servers. This will bring me to the
  • 00:00:56
    VS Code page where I can browse
  • 00:00:57
    different MCP servers available. Now
  • 00:00:58
    there's of course tons available out
  • 00:01:00
    there but it's kind of a curated list of
  • 00:01:02
    things like GitHub, Docs, Marketdown,
  • 00:01:04
    Hugging Face, Notion, Zappier, Memory,
  • 00:01:07
    Firecrawl, Clarity, Stripe, Azure
  • 00:01:10
    DevOps, Azure. Let's go ahead and
  • 00:01:11
    install GitHub. So I want to have at my
  • 00:01:13
    root all the time. So I'm going to say
  • 00:01:15
    install GitHub. It's going to open up VS
  • 00:01:17
    Code and give me this nice page to
  • 00:01:20
    explore the MCP server. So, I can
  • 00:01:22
    actually browse all of it here,
  • 00:01:24
    manifest, go to the repo, everything
  • 00:01:26
    like that. It's kind of like an
  • 00:01:26
    extension, right? And it even shows me
  • 00:01:28
    how to show set it up here. But I can
  • 00:01:30
    just click install and boom, it's here,
  • 00:01:33
    right? It's awesome. I can go ahead and
  • 00:01:35
    at any time go into settings. I can say
  • 00:01:37
    start server, show output,
  • 00:01:38
    configuration, model access, and more.
  • 00:01:41
    So, I'm going to say start server, and
  • 00:01:43
    then it'll just log me in to GitHub.
  • 00:01:45
    Just like that. And now when I go to my
  • 00:01:48
    tools, I can see all of them built in
  • 00:01:50
    and my GitHub MCP server. So I have
  • 00:01:52
    everything authenticated just like that.
  • 00:01:55
    Now this isn't creating a new MCP.JSON
  • 00:01:59
    file in my VS Code folder. I can go up
  • 00:02:02
    here and say MCP. And when I do that,
  • 00:02:05
    I'll see list server, browse resources,
  • 00:02:07
    reset cache tools, trust, show installed
  • 00:02:09
    servers, list servers. Now I'm going to
  • 00:02:11
    see the open workspace folder or open
  • 00:02:14
    user configuration. the workspace, the
  • 00:02:16
    one that I just talked about, the
  • 00:02:17
    mcbp.json, but the open user
  • 00:02:19
    configuration is one that's sort of in
  • 00:02:22
    the application route for anytime I use
  • 00:02:24
    VS Code anywhere, and that's where it's
  • 00:02:26
    configured automatically. So, I can see
  • 00:02:27
    it right there. Of course, if I don't
  • 00:02:28
    want it there, I can just copy and paste
  • 00:02:30
    this directly into a new MCP.json file.
  • 00:02:32
    Anyways, MCB servers easier to install
  • 00:02:34
    than ever.
  • 00:02:38
    When I'm using agent mode, I'm often
  • 00:02:40
    adding new features, functionality,
  • 00:02:42
    fixing bugs, and tuning a lot more. And
  • 00:02:44
    I often wanted to build a solution or
  • 00:02:46
    projects and run tests. So when I do
  • 00:02:48
    this normally, let's see what happens.
  • 00:02:49
    So if I come in and say, how do I build
  • 00:02:53
    this solution?
  • 00:02:56
    Uh what are the commands, right? So I'm
  • 00:02:59
    just going to ask it what it is. And
  • 00:03:00
    it's going to tell me here probably to
  • 00:03:02
    build it. Do a net restore, a donet
  • 00:03:04
    build, a donet run. So I could say,
  • 00:03:06
    okay, let's build it. So now what it's
  • 00:03:10
    going to say is, okay, cool. and build.
  • 00:03:12
    Let's run this command, which is
  • 00:03:13
    something that would do all the time,
  • 00:03:14
    but it's going to ask me to continue.
  • 00:03:16
    You don't really need to ask me to build
  • 00:03:17
    a project if you're implementing stuff.
  • 00:03:19
    Just go ahead and build it. So now, if
  • 00:03:21
    you go into settings
  • 00:03:23
    and if you go ahead and go down to
  • 00:03:25
    extensions and go down to GitHub copilot
  • 00:03:28
    under experimental in this case, it may
  • 00:03:30
    be in preview or automatically instable
  • 00:03:32
    by the time you watch this, but there is
  • 00:03:33
    a new allow list and a deny list. So you
  • 00:03:36
    can specify what commands you want it to
  • 00:03:39
    automatically run without any prompting.
  • 00:03:41
    So if I go in and say add.net
  • 00:03:44
    build and hit okay here. Now we can go
  • 00:03:48
    back and I could say let's build it. And
  • 00:03:52
    now it will automatically run that
  • 00:03:55
    build. This is so nice when working with
  • 00:03:58
    agent mode to specify what commands you
  • 00:04:01
    want it to automatically run. It's super
  • 00:04:03
    nice to go in, have your allow list and
  • 00:04:05
    your deny list, anything that you want.
  • 00:04:07
    So, PowerShell, bash, anything like
  • 00:04:10
    that, specify them here. So, I have net
  • 00:04:12
    build, net run, net test, have
  • 00:04:14
    everything automatically set up.
  • 00:04:20
    Okay, one of my other favorite features
  • 00:04:22
    is a new setting. Just go into your
  • 00:04:24
    settings and say max requests. All
  • 00:04:27
    right, this is key. This defaults to 20.
  • 00:04:30
    So, when you're working in agent mode,
  • 00:04:32
    you often have it have longunning
  • 00:04:35
    operations. The default for max request
  • 00:04:37
    before it asks you to continue is 20.
  • 00:04:40
    Set it higher. I set it to 100. Set it
  • 00:04:42
    to 10,000. Just whatever you want. It'll
  • 00:04:45
    just keep going and keep grinding until
  • 00:04:48
    it finishes. And it'll never ask you for
  • 00:04:50
    continue ever again. Combine that with
  • 00:04:52
    the allow deny list and that is a
  • 00:04:55
    gamecher.
  • 00:04:59
    All right. All right, I showed this
  • 00:05:00
    other one in another video, but I'm
  • 00:05:02
    going to tell you again, go into your
  • 00:05:05
    settings of the agent mode. Hit generate
  • 00:05:08
    instructions. This will automatically go
  • 00:05:12
    through and analyze your entire
  • 00:05:14
    codebase. It will create and or update
  • 00:05:17
    your co-pilot instructions, giving it a
  • 00:05:20
    full overview of everything in your
  • 00:05:23
    project, how to run it, how to add
  • 00:05:25
    features, and a whole lot more. It will
  • 00:05:28
    analyze your best practices, your coding
  • 00:05:31
    conventions and a lot more. So every
  • 00:05:34
    time you make a call with agent mode, it
  • 00:05:37
    will automatically send these and then
  • 00:05:38
    you can specify them even more details
  • 00:05:41
    if you want to. As you make changes to
  • 00:05:44
    your project, go back in, go inside of
  • 00:05:47
    here, play around, hit generate
  • 00:05:49
    instructions again. You can run it with
  • 00:05:50
    different models, anything that you
  • 00:05:52
    want. It's basically running a big
  • 00:05:53
    prompt and it is a gamecher when working
  • 00:05:56
    with copilot instructions inside of VS
  • 00:05:59
    Code or Visual Studio or anywhere that
  • 00:06:00
    you're using Copilot.
  • 00:06:06
    Okay, I love code completions. When I'm
  • 00:06:07
    typing code, which I still do, I say
  • 00:06:09
    group dot and it automatically fills in
  • 00:06:12
    this ghost text, this code completion
  • 00:06:14
    recommendation that I can just tap tap
  • 00:06:16
    tap tap tap and go go go. Sometimes
  • 00:06:18
    you're in a flow, you might be demoing,
  • 00:06:20
    you want to do something. You can now
  • 00:06:22
    click this little co-pilot icon down
  • 00:06:23
    here and you can configure if you want
  • 00:06:26
    code completions on for all files, the
  • 00:06:28
    type of file you're in, if you want
  • 00:06:30
    nextedit suggestions, or what I like is
  • 00:06:33
    this little snooze button. You can add
  • 00:06:35
    five minutes at a time. So you can
  • 00:06:37
    automatically snooze the code
  • 00:06:39
    completion. So now if I come back over
  • 00:06:41
    and I say group dot, I don't get any
  • 00:06:43
    code completions coming in. So I can
  • 00:06:45
    just write. I still get my IntelliSense.
  • 00:06:47
    I still get everything that I want, but
  • 00:06:48
    now I'm just back in the flow. I can
  • 00:06:50
    come back in. I see there's a little Z
  • 00:06:52
    right there. If I tap on it again, I can
  • 00:06:54
    go ahead and hit cancel. Come back in.
  • 00:06:57
    And now I'll start to get my code
  • 00:06:58
    completions again coming in just like
  • 00:07:01
    that, which is super awesome.
  • 00:07:07
    Okay, the last thing I want to talk
  • 00:07:08
    about is the awesome co-pilot repo on
  • 00:07:10
    the GitHub or has a bunch of custom
  • 00:07:12
    instructions and prompts and custom chat
  • 00:07:15
    modes which basically let you identify
  • 00:07:17
    behaviors for tools when working with
  • 00:07:19
    agent mode. So things for example like
  • 00:07:21
    planning mode or DBA or PRD type chat
  • 00:07:25
    creation inside of here refining
  • 00:07:26
    requirements or issue chat and you can
  • 00:07:29
    basically scope down what tools are
  • 00:07:31
    available and give it additional
  • 00:07:33
    instructions when working in that mode.
  • 00:07:35
    My favorite is this one from Burke
  • 00:07:37
    Holland 4.1 beast mode which for all
  • 00:07:39
    intents and purposes gives when working
  • 00:07:42
    with GBT41 additional behaviors that do
  • 00:07:46
    much more in-depth planning and
  • 00:07:48
    execution. So it goes through and he
  • 00:07:50
    worked really close looking at all the
  • 00:07:52
    OpenAI documentation and identified this
  • 00:07:54
    workflow and understanding what it needs
  • 00:07:57
    to do. So let's go ahead and put this
  • 00:07:58
    chat mode in. I'm going to go to RAW.
  • 00:08:00
    I'm going to copy this. I'm going to go
  • 00:08:02
    over into my build and I'm going to say
  • 00:08:05
    settings modes and then I can add a new
  • 00:08:08
    chat mode file in my GitHub chat modes
  • 00:08:11
    here. And then I'm going to say beast
  • 00:08:13
    mode. You can even add them like
  • 00:08:15
    systemwide and paste that in. Okay. So
  • 00:08:18
    now I just have a single product
  • 00:08:20
    endpoint here. Let me say let's add a
  • 00:08:24
    new user endpoint
  • 00:08:28
    and create a new web UI in the front end
  • 00:08:32
    for managing them. Now here I could use
  • 00:08:36
    just normal agent mode, but I'm going to
  • 00:08:39
    go into the agent mode custom beast
  • 00:08:41
    mode. Now I can still select the
  • 00:08:43
    different models, but I'm going to go
  • 00:08:44
    ahead and select just 41. it's been
  • 00:08:47
    optimized for and hit go. Now, what I
  • 00:08:49
    like about this is that 41 is going to
  • 00:08:52
    now identify all the steps that it
  • 00:08:54
    needs. It's identified it eight
  • 00:08:56
    different steps that it needs to execute
  • 00:08:58
    like data entities, p data context, the
  • 00:09:00
    endpoints, the program files, and a lot
  • 00:09:02
    more. And it's going to go and update
  • 00:09:04
    along the way of everything that it is
  • 00:09:07
    doing. So, this is really, really neat
  • 00:09:09
    as it adds files. And this has been a
  • 00:09:11
    complete gamecher for me when I'm
  • 00:09:14
    working with agent mode and 41 because
  • 00:09:17
    it is super duper quick. Those are just
  • 00:09:20
    some of my new favorite features when
  • 00:09:23
    working with agent mode and code
  • 00:09:24
    completions inside of VS Code. But there
  • 00:09:26
    are so many to explore. What are your
  • 00:09:29
    favorite features? Let me know in the
  • 00:09:31
    comments below. If you enjoyed this
  • 00:09:32
    video and you've tried out some of the
  • 00:09:34
    features, give it a thumbs up, share it
  • 00:09:36
    with a friend, and don't forget to
  • 00:09:37
    subscribe. Jam that notification bell so
  • 00:09:39
    you get notified every time I put out
  • 00:09:41
    new videos right here on YouTube. So
  • 00:09:42
    until next time, I'm James. Thanks for
  • 00:09:45
    watching.
  • 00:09:47
    [Music]
Tags
  • VS Code
  • IA
  • MCP servers
  • agent mode
  • code completions
  • GitHub Copilot
  • automation
  • custom chat modes
  • productivity
  • features