Skip to content
TheChatArchiveThe Chat Archive
Claudeclaude-3-7-sonnet-20250219-thinking-32k· AnthropicHugging Face LMArena Human Preference 140K

traduce al español: 0.27 (2025-05-07) GitHub Copilot updates from April 2025: Chat…

From a Chatbot Arena battleThe same person sent this prompt to two anonymous models at once. Compare it with Geminigemini-2.5-pro’s answer.
  1. User

    traduce al español:

    0.27 (2025-05-07) GitHub Copilot updates from April 2025:

    Chat Prompt and instructions files You can tailor your AI experience in VS Code to your specific coding practices and technology stack by using Markdown-based instructions and prompt files. We've aligned the implementation and usage of these two related concepts, however they each have distinct purposes.

    Instructions files Setting: chat.instructionsFilesLocations

    Instructions files (also known as custom instructions or rules) provide a way to describe common guidelines and context for the AI model in a Markdown file, such as code style rules, or which frameworks to use. Instructions files are not standalone chat requests, but rather provide context that you can apply to a chat request.

    Instructions files use the .instructions.md file suffix. They can be located in your user data folder or in the workspace. The chat.instructionsFilesLocations setting lists the folders that contain instruction files.

    You can manually attach instructions to a specific chat request, or they can be automatically added:

    To add them manually, use the Add Context button in the Chat view, and then select Instructions.... Alternatively use the Chat: Attach Instructions... command from the Command Palette. This brings up a picker that lets you select existing instructions files or create a new one to attach.

    To automatically add instructions to a prompt, add the applyTo Front Matter header to the instructions file to indicate which files the instructions apply to. If a chat request contains a file that matches the given glob pattern, the instructions file is automatically attached.

    The following example provides instructions for TypeScript files (applyTo: '**/*.ts'):


    applyTo: '**/*.ts'

    Place curly braces on separate lines for multi-line blocks: if (condition) { doSomething(); } else { doSomethingElse(); }

    You can create instruction files with the Chat: New Instructions File... command. Moreover, the files created in the user data folder can be automatically synchronized across multiple user machines through the Settings Sync service. Make sure to check the Prompts and Instructions option in the Backup and Sync Settings... dialog.

    Learn more about instruction files in our documentation.

    Prompt files Setting: chat.promptFilesLocations

    Prompt files describe a standalone, complete chat request, including the prompt text, chat mode, and tools to use. Prompt files are useful for creating reusable chat requests for common tasks. For example, you can add a prompt file for creating a front-end component, or to perform a security review.

    Prompt files use the .prompt.md file suffix. They can be located in your user data folder or in the workspace. The chat.promptFilesLocations setting lists the folder where prompt files are looked for.

    There are several ways to run a prompt file:

    Type / in the chat input field, followed by the prompt file name. Screenshot that shows running a prompt in the Chat view with a slash command.

    Open the prompt file in an editor and press the 'Play' button in the editor tool bar. This enables you to quickly iterate on the prompt and run it without having to switch back to the Chat view. Screenshot that shows running a prompt by using the play button in the editor.

    Use the Chat: Run Prompt File... command from the Command Palette.

    Prompt files can have the following Front Matter metadata headers to indicate how they should be run:

    mode: the chat mode to use when invoking the prompt (ask, edit, or agent mode). tools: if the mode is agent, the list of tools that are available for the prompt. The following example shows a prompt file for generating release notes, that runs in agent mode, and can use a set of tools:


    mode: 'agent' tools: ['getCurrentMilestone', 'getReleaseFeatures', 'file_search', 'semantic_search', 'read_file', 'insert_edit_into_file', 'create_file', 'replace_string_in_file', 'fetch_webpage', 'vscode_search_extensions_internal']

    Generate release notes for the features I worked in the current release and update them in the release notes file. Use release notes writing instructions file as a guide.

    To create a prompt file, use the Chat: New Prompt File... command from the Command Palette.

    Learn more about prompt files in our documentation.

    Improvements and notes Instructions and prompt files now have their own language IDs, configurable in the language mode dialog for any file open document ("Prompt" and "Instructions" respectively). This allows, for instance, using untitled documents as temporary prompt files before saving them as files to disk. We renamed the Chat: Use Prompt command to Chat: Run Prompt. Furthermore, the command now runs the selected prompt immediately, as opposed to attaching it as chat context as it did before. Both file types now also support the description metadata in their headers, providing a common place for short and user-friendly prompt summaries. In the future, this header is planned to be used along with the applyTo header as the rule that determines if the file needs to be auto-included with chat requests (for example, description: 'Code style rules for front-end components written in TypeScript.') Faster agent mode edits with GPT 4.1 We've implemented support for OpenAI's apply patch editing format when using GPT 4.1 and o4-mini in agent mode. This means that you benefit from significantly faster edits, especially in large files. The tool is enabled by default in VS Code Insiders and will be progressively rolled out in VS Code Stable.

    Use GPT 4.1 as the base model When you're using chat in VS Code, the base model is now updated to GPT-4.1. You can still use the model switcher in the Chat view to change to another model.

    Search code of a GitHub repository with the #githubRepo tool Imagine you need to ask a question about a GitHub repository, but you don't have it open in your editor. You can now use the #githubRepo tool to search for code snippets in any GitHub repository that you have access to. This tool takes a USER/REPO and is a great way to quickly ask about a project you don't currently have open in VS Code.

    You can also use custom instructions to hint to Copilot when and how to use this tool:


    applyTo: '**'

    Use the #githubRepo tool with microsoft/vscode to find relevant code snippets in the VS Code codebase. Use the #githubRepo tool with microsoft/typescript to answer questions about how TypeScript is implemented.

    Screenshot showing using the #githubRepo tool in agent mode with hints from instructions files.

    If you want to ask about the repo you are currently working on, you can just use the #codebase tool.

    Also, the #githubRepo tool is only for searching for relevant code snippets. The GitHub MCP server provides tools for working with GitHub issues and pull requests. Learn more about adding MCP servers in VS Code.

    Find Marketplace extensions with the extensions tool Use #extensions tool to find extensions from the Marketplace. This tool is available in both chat and agent mode and is picked up automatically but you can also reference it explicitly via #extensions with your query. The tool returns a list of extensions that match your query, and you can install them directly from the results.

    Improvements to the web page fetch tool Last month, we introduced the #fetch tool, which allows you to fetch the contents of a web page right from chat to include as context for your prompt. If you missed that release note, check out the initial release of the fetch tool release note and examples.

    This iteration, we have made several big changes to the tool including:

    Entire page as context: We now add the entire page as context, rather than a subset. With larger context windows, we have the ability to give the model the entire page. For example, it's now possible to ask summarization questions that require as much of the page as possible. If you do manage to fill up the context window, the fetch tool is smart enough to exclude the less relevant sections of the page. That way, you don't exceed the context window limit, while still keeping the important parts. A standardized page format (Markdown): Previously, we formatted fetched webpages in a custom hierarchical format that did the job, but was sometimes hard to reason with because of its custom nature. We now convert fetched webpages into Markdown, a standardized language. This improves the reliability of the relevancy detection and is a format that most language models know deeply, so they can reason with it more easily. We'd love to hear how you use the fetch tool and if there are any capabilities you'd like to see from it!

    Chat input improvements We have made several improvements to the chat input box:

    Attachments: when you reference context in the prompt text with #, they now also appear as an attachment pill. This makes it simpler to understand what's being sent to the language model. Context picker: we streamlined the context picker to make it simpler to pick files, folders, and other attachment types. Done button: we heard your feedback about the "Done"-button and we removed it! No more confusion about unexpected session endings. Now, we only start a new session when you create a new chat (Ctrl+L). Chat mode keyboard shortcuts The keyboard shortcut Ctrl+Alt+I still just opens the Chat view, but the Ctrl+Shift+I shortcut now opens the Chat view and switches to agent mode. If you'd like to set up keyboard shortcuts for other chat modes, there is a command for each mode:

    workbench.action.chat.openAgent workbench.action.chat.openEdit workbench.action.chat.openAsk Autofix diagnostics from agent mode edits Setting: github.copilot.chat.agent.autoFix

    If a file edit in agent mode introduces new errors, agent mode can now detect them, and automatically propose a follow-up edit. You can disable this behavior with github.copilot.chat.agent.autoFix.

    Handling of undo and manual edits in agent mode Previously, making manual edits during an agent mode session could confuse the model. Now, the agent is prompted about your changes, and should re-read files when necessary before editing files that might have changed.

    Conversation history summarized and optimized for prompt caching We've made some changes to how our agent mode prompt is built to optimize for prompt caching. Prompt caching is a way to speed up model responses by maintaining a stable prefix for the prompt. The next request is able to resume from that prefix, and the result is that each request should be a bit faster. This is especially effective in a repetitive series of requests with large context, like you typically have in agent mode.

    When your conversation gets long, or your context gets very large, you might see a "Summarized conversation history" message in your agent mode session:

    Screenshot showing a summarized conversation message in the Chat view.

    Instead of keeping the whole conversation as a FIFO, breaking the cache, we compress the conversation so far into a summary of the most important information and the current state of your task. This keeps the prompt prefix stable, and your responses fast.

    MCP support for Streamable HTTP This release adds support for the new Streamable HTTP transport for Model Context Protocol servers. Streamable HTTP servers are configured just like existing SSE servers, and our implementation is backwards-compatible with SSE servers:

    { "servers": { "my-mcp-server": { "url": "http://localhost:3000/mcp" } } }

    Learn more about MCP support in VS Code.

    MCP support for image output We now support MCP servers that generate images as part of their tool output.

    Note that not all language models support reading images from tool output. For example, although GPT-4.1 has vision capability, it does not currently support reading images from tools.

    Enhanced input, output, and progress from MCP servers We have enhanced the UI that shows MCP server tool input and output, and have also added support for MCP's new progress messages.

    Theme: Codesong (preview on vscode.dev)

    MCP config generation uses inputs To help keep your secrets secure, AI-assisted configurations generated by the MCP: Add Server command now generate inputs for any secrets, rather than inlining them into the resulting configuration.

    Inline chat V2 (Preview) Setting: chat.inlineChat.enableV2:true

    We have been working on a revamped version of inline chat Ctrl+I. Its theme is still "bringing chat into code", but behind the scenes it uses the same logic as chat edits. This means better use of the available context and a better code-editing strategy. You can enable inline chat v2 via chat.inlineChat.enableV2:true

    Further, there is now a more lightweight UX that can optionally be enabled. With the chat.inlineChat.hideOnRequest:true setting, inline chat hides as soon as a request is made. It then minimizes into the chat-editing overlay, which enables accepting or discarding changes, or restoring the inline chat control.

    Select and attach UI elements to chat (Experimental) Setting: chat.sendElementsToChat.enabled

    While you're developing a web application, you might want to ask chat about specific UI elements of a web page. You can now use the built-in Simple Browser to attach UI elements as context to chat.

    After opening any locally-hosted site via the built-in Simple Browser (launch it with the Simple Browser: Show command), a new toolbar is now shown where you can select Start to select any element in the site that you want. This attaches a screenshot of the selected element, and the HTML and CSS of the element.

    Configure what is attached to chat with:

    chat.sendElementsToChat.attachCSS: enable or disable attaching the associated CSS chat.sendElementsToChat.attachImages: enable or disable attaching the screenshot of the selected element This experimental feature is enabled by default for all Simple Browsers, but can be disabled with chat.sendElementsToChat.enabled.

    Create and launch tasks in agent mode (Experimental) Setting: chat.newWorkspaceCreation.enabled

    In the previous release, we introduced the chat.newWorkspaceCreation.enabled (Experimental) setting to enable workspace creation with agent mode.

    Now, at the end of this creation flow, you are prompted to create and run a task for launching your app or project. This streamlines the project launch process and enables easy task reuse.

    Configure VS Code Prevent installation of Copilot Chat pre-release versions in VS Code stable VS Code now prevents the installation of the pre-release version of the Copilot Chat extension in VS Code Stable. This helps avoid situations where you inadvertently install the Copilot Chat pre-release version and get stuck in a broken state. This means that you can only install the Copilot Chat extension pre-release version in the Insiders build of VS Code.

    Semantic text search with keyword suggestions (Experimental) Setting: chat.search.keywordSuggestions:true

    Semantic text search now supports AI-powered keyword suggestions. By enabling this feature, you will start seeing relevant references or definitions that might help you find the code you are looking for.

    Code Editing New Next Edit Suggestions (NES) model Setting: github.copilot.nextEditSuggestions.enabled

    We're excited to introduce a new model powering NES, designed to provide faster and more contextually relevant code recommendations. This updated model offers improved performance, delivering suggestions with reduced latency, and offering suggestions that are less intrusive and align more closely with your recent edits. This update is part of our ongoing commitment to refining AI-assisted development tools within Visual Studio Code.

    Import suggestions Setting: github.copilot.nextEditSuggestions.fixes:true

    Next Edit Suggestions (NES) can now automatically suggest adding missing import statements in JavaScript and TypeScript files. Enable this feature by setting github.copilot.nextEditSuggestions.fixes:true. We plan to further enhance this capability by supporting imports from additional languages in future updates.

    Screenshot showing NES suggesting an import statement.

    Generate alt text in HTML or Markdown You can now generate or update existing alt text in HTML and Markdown files. Navigate to any line containing an embedded image and trigger the quick fix via Ctrl+. or by selecting the lightbulb icon.

    Screenshot that shows generating alt text for an image html element.

    Notebooks Drag and drop cell outputs to chat To enhance existing support for cell output usage within chat, outputs are now able to be dragged into the Chat view for a seamless attachment experience. Currently, only image and textual outputs are supported. Outputs with an image mime type are directly draggable, however to avoid clashing with text selection, textual outputs require holding the Alt modifier key to enable dragging. We are exploring UX improvements in the coming releases.

    Notebook tools for agent mode Run cell Chat now has an LLM tool to run notebook cells, which allows the agent to perform updates based on cell run results or perform its own data exploration as it builds out a notebook.

    Get kernel state The agent can find out which cells have been executed in the current kernel session, and read the active variables by using the Kernel State tool.

    List/Install packages The Jupyter extension contributes tools for listing and installing packages into the environment that's being used as the notebook's kernel. The operation is delegated to the Python Environments extension if available; otherwise, it attempts to use the pip package manager

  2. Claude Assistant

    0.27 (2025-05-07) Actualizaciones de GitHub Copilot de abril 2025:

    Chat Archivos de instrucciones y de peticiones Puedes adaptar tu experiencia con IA en VS Code a tus prácticas de codificación específicas y stack tecnológico utilizando archivos de instrucciones y peticiones basados en Markdown. Hemos alineado la implementación y uso de estos dos conceptos relacionados, aunque cada uno tiene propósitos distintos.

    Archivos de instrucciones Configuración: chat.instructionsFilesLocations

    Los archivos de instrucciones (también conocidos como instrucciones personalizadas o reglas) proporcionan una forma de describir directrices comunes y contexto para el modelo de IA en un archivo Markdown, como reglas de estilo de código o qué frameworks utilizar. Los archivos de instrucciones no son solicitudes de chat independientes, sino que proporcionan contexto que puedes aplicar a una solicitud de chat.

    Los archivos de instrucciones usan el sufijo .instructions.md. Pueden ubicarse en tu carpeta de datos de usuario o en el espacio de trabajo. La configuración chat.instructionsFilesLocations enumera las carpetas que contienen archivos de instrucciones.

    Puedes adjuntar instrucciones manualmente a una solicitud de chat específica, o pueden agregarse automáticamente:

    Para agregarlas manualmente, usa el botón Agregar Contexto en la vista de Chat, y luego selecciona Instrucciones.... Alternativamente, usa el comando Chat: Adjuntar Instrucciones... desde la Paleta de Comandos. Esto muestra un selector que te permite seleccionar archivos de instrucciones existentes o crear uno nuevo para adjuntar.

    Para agregar automáticamente instrucciones a una petición, agrega el encabezado Front Matter applyTo al archivo de instrucciones para indicar a qué archivos se aplican las instrucciones. Si una solicitud de chat contiene un archivo que coincide con el patrón glob dado, el archivo de instrucciones se adjunta automáticamente.

    El siguiente ejemplo proporciona instrucciones para archivos TypeScript (applyTo: '**/*.ts'):


    applyTo: '**/*.ts'

    Coloca las llaves en líneas separadas para bloques de múltiples líneas: if (condition) { doSomething(); } else { doSomethingElse(); }

    Puedes crear archivos de instrucciones con el comando Chat: Nuevo Archivo de Instrucciones.... Además, los archivos creados en la carpeta de datos de usuario pueden sincronizarse automáticamente entre múltiples máquinas a través del servicio de Sincronización de Configuraciones. Asegúrate de marcar la opción Peticiones e Instrucciones en el diálogo Copia de Seguridad y Sincronización de Configuraciones....

    Obtén más información sobre los archivos de instrucciones en nuestra documentación.

    Archivos de peticiones Configuración: chat.promptFilesLocations

    Los archivos de peticiones describen una solicitud de chat completa e independiente, incluyendo el texto de la petición, el modo de chat y las herramientas a utilizar. Los archivos de peticiones son útiles para crear solicitudes de chat reutilizables para tareas comunes. Por ejemplo, puedes agregar un archivo de petición para crear un componente front-end o para realizar una revisión de seguridad.

    Los archivos de peticiones usan el sufijo .prompt.md. Pueden ubicarse en tu carpeta de datos de usuario o en el espacio de trabajo. La configuración chat.promptFilesLocations enumera las carpetas donde se buscan los archivos de peticiones.

    Hay varias formas de ejecutar un archivo de petición:

    Escribe / en el campo de entrada de chat, seguido del nombre del archivo de petición. Captura de pantalla que muestra cómo ejecutar una petición en la vista de Chat con un comando de barra.

    Abre el archivo de petición en un editor y presiona el botón 'Reproducir' en la barra de herramientas del editor. Esto te permite iterar rápidamente sobre la petición y ejecutarla sin tener que volver a la vista de Chat. Captura de pantalla que muestra cómo ejecutar una petición usando el botón de reproducción en el editor.

    Usa el comando Chat: Ejecutar Archivo de Petición... desde la Paleta de Comandos.

    Los archivos de peticiones pueden tener los siguientes encabezados de metadatos Front Matter para indicar cómo deben ejecutarse:

    mode: el modo de chat a usar al invocar la petición (ask, edit o modo agent). tools: si el modo es agent, la lista de herramientas disponibles para la petición. El siguiente ejemplo muestra un archivo de petición para generar notas de lanzamiento, que se ejecuta en modo agent y puede usar un conjunto de herramientas:


    mode: 'agent' tools: ['getCurrentMilestone', 'getReleaseFeatures', 'file_search', 'semantic_search', 'read_file', 'insert_edit_into_file', 'create_file', 'replace_string_in_file', 'fetch_webpage', 'vscode_search_extensions_internal']

    Genera notas de lanzamiento para las características en las que trabajé en la versión actual y actualízalas en el archivo de notas de lanzamiento. Utiliza archivo de instrucciones para escribir notas de lanzamiento como guía.

    Para crear un archivo de petición, usa el comando Chat: Nuevo Archivo de Petición... desde la Paleta de Comandos.

    Obtén más información sobre los archivos de peticiones en nuestra documentación.

    Mejoras y notas Los archivos de instrucciones y peticiones ahora tienen sus propios IDs de lenguaje, configurables en el diálogo de modo de lenguaje para cualquier documento abierto ("Petición" e "Instrucciones" respectivamente). Esto permite, por ejemplo, usar documentos sin título como archivos de petición temporales antes de guardarlos como archivos en el disco. Renombramos el comando Chat: Usar Petición a Chat: Ejecutar Petición. Además, el comando ahora ejecuta la petición seleccionada inmediatamente, en lugar de adjuntarla como contexto de chat como hacía antes. Ambos tipos de archivo ahora también admiten el metadato description en sus encabezados, proporcionando un lugar común para resúmenes de peticiones breves y fáciles de entender. En el futuro, está previsto que este encabezado se use junto con el encabezado applyTo como la regla que determina si el archivo debe incluirse automáticamente con las solicitudes de chat (por ejemplo, description: 'Reglas de estilo de código para componentes front-end escritos en TypeScript.') Ediciones más rápidas en modo agente con GPT 4.1 Hemos implementado soporte para el formato de edición "apply patch" de OpenAI cuando se usa GPT 4.1 y o4-mini en modo agente. Esto significa que te beneficias de ediciones significativamente más rápidas, especialmente en archivos grandes. La herramienta está habilitada por defecto en VS Code Insiders y se implementará progresivamente en VS Code Stable.

    Usa GPT 4.1 como modelo base Cuando usas el chat en VS Code, el modelo base ahora se actualiza a GPT-4.1. Todavía puedes usar el selector de modelos en la vista de Chat para cambiar a otro modelo.

    Busca código de un repositorio GitHub con la herramienta #githubRepo Imagina que necesitas hacer una pregunta sobre un repositorio de GitHub, pero no lo tienes abierto en tu editor. Ahora puedes usar la herramienta #githubRepo para buscar fragmentos de código en cualquier repositorio de GitHub al que tengas acceso. Esta herramienta toma un USUARIO/REPO y es una excelente manera de preguntar rápidamente sobre un proyecto que no tienes actualmente abierto en VS Code.

    También puedes usar instrucciones personalizadas para indicar a Copilot cuándo y cómo usar esta herramienta:


    applyTo: '**'

    Usa la herramienta #githubRepo con microsoft/vscode para encontrar fragmentos de código relevantes en el código base de VS Code. Usa la herramienta #githubRepo con microsoft/typescript para responder preguntas sobre cómo está implementado TypeScript.

    Captura de pantalla que muestra el uso de la herramienta #githubRepo en modo agente con sugerencias de archivos de instrucciones.

    Si quieres preguntar sobre el repositorio en el que estás trabajando actualmente, puedes usar simplemente la herramienta #codebase.

    Además, la herramienta #githubRepo es solo para buscar fragmentos de código relevantes. El servidor GitHub MCP proporciona herramientas para trabajar con issues y pull requests de GitHub. Obtén más información sobre cómo agregar servidores MCP en VS Code.

    Encuentra extensiones del Marketplace con la herramienta extensions Usa la herramienta #extensions para encontrar extensiones del Marketplace. Esta herramienta está disponible tanto en el modo chat como en el modo agente y se detecta automáticamente, pero también puedes referenciarla explícitamente mediante #extensions con tu consulta. La herramienta devuelve una lista de extensiones que coinciden con tu consulta, y puedes instalarlas directamente desde los resultados.

    Mejoras en la herramienta de obtención de páginas web El mes pasado, introdujimos la herramienta #fetch, que te permite obtener el contenido de una página web directamente desde el chat para incluirlo como contexto para tu petición. Si te perdiste esa nota de lanzamiento, consulta la nota de lanzamiento inicial de la herramienta fetch y los ejemplos.

    En esta iteración, hemos realizado varios cambios importantes en la herramienta, incluyendo:

    Página completa como contexto: Ahora agregamos la página completa como contexto, en lugar de un subconjunto. Con ventanas de contexto más grandes, tenemos la capacidad de darle al modelo la página completa. Por ejemplo, ahora es posible hacer preguntas de resumen que requieran tanto de la página como sea posible. Si logras llenar la ventana de contexto, la herramienta fetch es lo suficientemente inteligente para excluir las secciones menos relevantes de la página. De esta manera, no excedes el límite de la ventana de contexto, mientras mantienes las partes importantes. Un formato de página estandarizado (Markdown): Anteriormente, formateábamos las páginas web obtenidas en un formato jerárquico personalizado que hacía el trabajo, pero a veces era difícil de razonar debido a su naturaleza personalizada. Ahora convertimos las páginas web obtenidas a Markdown, un lenguaje estandarizado. Esto mejora la fiabilidad de la detección de relevancia y es un formato que la mayoría de los modelos de lenguaje conocen profundamente, por lo que pueden razonar con él más fácilmente. ¡Nos encantaría saber cómo utilizas la herramienta fetch y si hay capacidades que te gustaría ver en ella!

    Mejoras en la entrada de chat Hemos realizado varias mejoras en el cuadro de entrada de chat:

    Adjuntos: cuando refieres contexto en el texto de la petición con #, ahora también aparecen como una píldora de adjunto. Esto hace que sea más simple entender qué se está enviando al modelo de lenguaje. Selector de contexto: simplificamos el selector de contexto para hacer más sencillo elegir archivos, carpetas y otros tipos de adjuntos. Botón Finalizar: ¡escuchamos tus comentarios sobre el botón "Finalizar" y lo eliminamos! No más confusión sobre finalizaciones inesperadas de sesión. Ahora, solo iniciamos una nueva sesión cuando creas un nuevo chat (Ctrl+L). Atajos de teclado para modos de chat El atajo de teclado Ctrl+Alt+I todavía solo abre la vista de Chat, pero el atajo Ctrl+Shift+I ahora abre la vista de Chat y cambia al modo agente. Si deseas configurar atajos de teclado para otros modos de chat, hay un comando para cada modo:

    workbench.action.chat.openAgent workbench.action.chat.openEdit workbench.action.chat.openAsk Corrección automática de diagnósticos desde ediciones en modo agente Configuración: github.copilot.chat.agent.autoFix

    Si una edición de archivo en modo agente introduce nuevos errores, el modo agente ahora puede detectarlos y proponer automáticamente una edición de seguimiento. Puedes desactivar este comportamiento con github.copilot.chat.agent.autoFix.

    Manejo de deshacer y ediciones manuales en modo agente Anteriormente, hacer ediciones manuales durante una sesión en modo agente podía confundir al modelo. Ahora, se le informa al agente sobre tus cambios, y debería releer los archivos cuando sea necesario antes de editar archivos que podrían haber cambiado.

    Historial de conversación resumido y optimizado para el almacenamiento en caché de peticiones Hemos realizado algunos cambios en la forma en que se construye nuestra petición en modo agente para optimizar el almacenamiento en caché de peticiones. El almacenamiento en caché de peticiones es una forma de acelerar las respuestas del modelo manteniendo un prefijo estable para la petición. La siguiente solicitud puede reanudar desde ese prefijo, y el resultado es que cada solicitud debería ser un poco más rápida. Esto es especialmente efectivo en una serie repetitiva de solicitudes con un contexto grande, como típicamente tienes en el modo agente.

    Cuando tu conversación se alarga, o tu contexto se vuelve muy grande, podrías ver un mensaje de "Historial de conversación resumido" en tu sesión de modo agente:

    Captura de pantalla que muestra un mensaje de conversación resumida en la vista de Chat.

    En lugar de mantener toda la conversación como FIFO, rompiendo la caché, comprimimos la conversación hasta ahora en un resumen de la información más importante y el estado actual de tu tarea. Esto mantiene el prefijo de la petición estable, y tus respuestas rápidas.

    Soporte MCP para HTTP Transmisible Esta versión agrega soporte para el nuevo transporte HTTP Transmisible para servidores de Protocolo de Contexto de Modelo. Los servidores HTTP transmisibles se configuran igual que los servidores SSE existentes, y nuestra implementación es compatible con versiones anteriores de servidores SSE:

    { "servers": { "my-mcp-server": { "url": "http://localhost:3000/mcp" } } }

    Obtén más información sobre el soporte MCP en VS Code.

    Soporte MCP para salida de imágenes Ahora admitimos servidores MCP que generan imágenes como parte de su salida de herramientas.

    Ten en cuenta que no todos los modelos de lenguaje admiten la lectura de imágenes desde la salida de herramientas. Por ejemplo, aunque GPT-4.1 tiene capacidad de visión, actualmente no admite leer imágenes desde herramientas.

    Entrada, salida y progreso mejorados desde servidores MCP Hemos mejorado la interfaz de usuario que muestra la entrada y salida de herramientas del servidor MCP, y también hemos agregado soporte para los nuevos mensajes de progreso de MCP.

    Tema: Codesong (vista previa en vscode.dev)

    La generación de configuración MCP utiliza entradas Para ayudar a mantener tus secretos seguros, las configuraciones asistidas por IA generadas por el comando MCP: Agregar Servidor ahora generan entradas para cualquier secreto, en lugar de incluirlos directamente en la configuración resultante.

    Chat en línea V2 (Vista previa) Configuración: chat.inlineChat.enableV2:true

    Hemos estado trabajando en una versión renovada del chat en línea Ctrl+I. Su tema sigue siendo "llevar el chat al código", pero detrás de escena utiliza la misma lógica que las ediciones de chat. Esto significa un mejor uso del contexto disponible y una mejor estrategia de edición de código. Puedes habilitar el chat en línea v2 mediante chat.inlineChat.enableV2:true

    Además, ahora hay una experiencia de usuario más ligera que se puede habilitar opcionalmente. Con la configuración chat.inlineChat.hideOnRequest:true, el chat en línea se oculta tan pronto como se realiza una solicitud. Luego se minimiza en la superposición de edición de chat, lo que permite aceptar o descartar cambios, o restaurar el control de chat en línea.

    Selecciona y adjunta elementos de interfaz de usuario al chat (Experimental) Configuración: chat.sendElementsToChat.enabled

    Mientras desarrollas una aplicación web, es posible que desees preguntar al chat sobre elementos específicos de la interfaz de usuario de una página web. Ahora puedes usar el Navegador Simple integrado para adjuntar elementos de interfaz de usuario como contexto al chat.

    Después de abrir cualquier sitio alojado localmente a través del Navegador Simple integrado (inícialo con el comando Navegador Simple: Mostrar), ahora se muestra una nueva barra de herramientas donde puedes seleccionar Iniciar para seleccionar cualquier elemento del sitio que desees. Esto adjunta una captura de pantalla del elemento seleccionado, y el HTML y CSS del elemento.

    Configura lo que se adjunta al chat con:

    chat.sendElementsToChat.attachCSS: habilita o deshabilita adjuntar el CSS asociado chat.sendElementsToChat.attachImages: habilita o deshabilita adjuntar la captura de pantalla del elemento seleccionado Esta característica experimental está habilitada por defecto para todos los Navegadores Simples, pero puede deshabilitarse con chat.sendElementsToChat.enabled.

    Crea y lanza tareas en modo agente (Experimental) Configuración: chat.newWorkspaceCreation.enabled

    En la versión anterior, introdujimos la configuración chat.newWorkspaceCreation.enabled (Experimental) para habilitar la creación de espacios de trabajo con modo agente.

    Ahora, al final de este flujo de creación, se te solicita crear y ejecutar una tarea para lanzar tu aplicación o proyecto. Esto agiliza el proceso de lanzamiento del proyecto y permite la reutilización fácil de tareas.

    Configura VS Code Prevenir la instalación de versiones preliminares de Copilot Chat en VS Code estable VS Code ahora evita la instalación de la versión preliminar de la extensión Copilot Chat en VS Code Stable. Esto ayuda a evitar situaciones donde inadvertidamente instalas la versión preliminar de Copilot Chat y te quedas en un estado roto. Esto significa que solo puedes instalar la versión preliminar de la extensión Copilot Chat en la compilación Insiders de VS Code.

    Búsqueda de texto semántica con sugerencias de palabras clave (Experimental) Configuración: chat.search.keywordSuggestions:true

    La búsqueda de texto semántica ahora admite sugerencias de palabras clave potenciadas por IA. Al habilitar esta característica, comenzarás a ver referencias o definiciones relevantes que podrían ayudarte a encontrar el código que estás buscando.

    Edición de Código Nuevo modelo de Sugerencias de Edición Siguiente (NES) Configuración: github.copilot.nextEditSuggestions.enabled

    Nos complace presentar un nuevo modelo que impulsa NES, diseñado para proporcionar recomendaciones de código más rápidas y contextualmente relevantes. Este modelo actualizado ofrece un mejor rendimiento, entregando sugerencias con latencia reducida y ofreciendo sugerencias que son menos intrusivas y se alinean más estrechamente con tus ediciones recientes. Esta actualización es parte de nuestro compromiso continuo de refinar las herramientas de desarrollo asistidas por IA dentro de Visual Studio Code.

    Sugerencias de importación Configuración: github.copilot.nextEditSuggestions.fixes:true

    Las Sugerencias de Edición Siguiente (NES) ahora pueden sugerir automáticamente la adición de declaraciones de importación faltantes en archivos JavaScript y TypeScript. Habilita esta característica configurando github.copilot.nextEditSuggestions.fixes:true. Planeamos mejorar aún más esta capacidad apoyando importaciones de lenguajes adicionales en futuras actualizaciones.

    Captura de pantalla que muestra NES sugiriendo una declaración de importación.

    Genera texto alternativo en HTML o Markdown Ahora puedes generar o actualizar texto alternativo existente en archivos HTML y Markdown. Navega a cualquier línea que contenga una imagen incrustada y activa la corrección rápida a través de Ctrl+. o seleccionando el icono de bombilla.

    Captura de pantalla que muestra la generación de texto alternativo para un elemento de imagen html.

    Cuadernos Arrastra y suelta salidas de celdas al chat Para mejorar el soporte existente para el uso de salidas de celdas dentro del chat, ahora las salidas se pueden arrastrar a la vista de Chat para una experiencia de adjunto perfecta. Actualmente, solo se admiten salidas de imágenes y textuales. Las salidas con un tipo MIME de imagen son directamente arrastrables, sin embargo, para evitar conflictos con la selección de texto, las salidas textuales requieren mantener presionada la tecla Alt para habilitar el arrastre. Estamos explorando mejoras de UX en las próximas versiones.

    Herramientas de cuaderno para modo agente Ejecutar celda El chat ahora tiene una herramienta LLM para ejecutar celdas de cuaderno, lo que permite al agente realizar actualizaciones basadas en los resultados de ejecución de celdas o realizar su propia exploración de datos mientras construye un cuaderno.

    Obtener estado del kernel El agente puede averiguar qué celdas se han ejecutado en la sesión actual del kernel y leer las variables activas utilizando la herramienta Estado del Kernel.

    Listar/Instalar paquetes La extensión Jupyter contribuye con herramientas para listar e instalar paquetes en el entorno que se está utilizando como kernel del cuaderno. La operación se delega a la extensión Python Environments si está disponible; de lo contrario, intenta usar el administrador de paquetes pip

Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.