About code suggestions in Visual Studio Code
Copilot in Visual Studio Code provides two kinds of code suggestions:
- Code completion
- Copilot offers coding suggestions as you type. You can also describe something you want to do using natural language within a comment, and Copilot will suggest the code to accomplish your goal.
- Sugerencias de edición siguientes (versión preliminar pública)
- Based on the edits you are making, Copilot will predict the location of the next edit you are likely to make and suggest a completion for it. Suggestions may span a single symbol, an entire line, or multiple lines, depending on the scope of the potential change. To enable sugerencias de edición siguientes, see Configuración de GitHub Copilot en tu entorno.
GitHub Copilot proporciona sugerencias para numerosos lenguajes y una amplia variedad de marcos, pero funciona especialmente bien para Python, JavaScript, TypeScript, Ruby, Go, C# y C++. GitHub Copilot también puede ayudar en la generación de consultas para bases de datos, o en la generación de sugerencias para API y marcos, y puede ayudar con la infraestructura como desarrollo de código.
About code suggestions in JetBrains IDEs
Copilot offers code completion suggestions as you type.
GitHub Copilot proporciona sugerencias para numerosos lenguajes y una amplia variedad de marcos, pero funciona especialmente bien para Python, JavaScript, TypeScript, Ruby, Go, C# y C++. GitHub Copilot también puede ayudar en la generación de consultas para bases de datos, o en la generación de sugerencias para API y marcos, y puede ayudar con la infraestructura como desarrollo de código.
About code suggestions in Visual Studio
Copilot in Visual Studio provides two kinds of code suggestions:
- Code completion
- Copilot offers coding suggestions as you type.
- Sugerencias de edición siguientes (versión preliminar pública)
- Based on the edits you are making, Copilot will predict the location of the next edit you are likely to make and suggest a completion for it. Suggestions may span a single symbol, an entire line, or multiple lines, depending on the scope of the potential change. To enable sugerencias de edición siguientes, see Configuración de GitHub Copilot en tu entorno.
GitHub Copilot proporciona sugerencias para numerosos lenguajes y una amplia variedad de marcos, pero funciona especialmente bien para Python, JavaScript, TypeScript, Ruby, Go, C# y C++. GitHub Copilot también puede ayudar en la generación de consultas para bases de datos, o en la generación de sugerencias para API y marcos, y puede ayudar con la infraestructura como desarrollo de código.
About code suggestions in Vim/Neovim
GitHub Copilot provides code completion suggestions inline as you type in Vim/Neovim.
About code suggestions in Azure Data Studio
GitHub Copilot provides you with inline suggestions as you create SQL databases in Azure Data Studio.
About code suggestions in Xcode
GitHub Copilot offers code completion suggestions as you type.
About code suggestions in Eclipse
GitHub Copilot offers code completion suggestions as you type.
Code suggestions that match public code
GitHub Copilot checks each suggestion for matches with publicly available code. Any matches are discarded or suggested with a code reference, based on the setting of the "Suggestions matching public code" policy for your account or organization. See Copilot code referencing.
About the AI model used for Copilot code completion
Copilot code completion uses the GPT-4o Copilot model. This is a fine-tuned version of the GPT-4o mini model. The GPT-4o Copilot model was trained on a wide range of high quality public GitHub repositories, providing coverage of over 30 programming languages. See Programming languages included in the default model below.
Changing the model used for code completion
You can switch the AI model that's used by Copilot code completion if:
- An alternative model is currently available
- You are using the latest releases of VS Code with the latest version of the GitHub Copilot extension
Changing the model only affects Copilot code completion. It does not affect Copilot next edit suggestions.
Nota:
The list of available models will change over time. When only one code completion model is available, the model picker will only show that model. Preview models and additional code completion models will be added to the picker as they become available.
For details of how to switch the model for Copilot code completion, see Cambio del modelo de IA para la finalización del código de Copilot.
Effects of switching the AI model
Changing the model that's used for Copilot code completion does not affect the model that's used by Copilot next edit suggestions or Copilot Chat. See Cambio del modelo de IA para Copilot Chat.
There are no changes to the data collection and usage policy if you change the AI model.
If you are on a Copilot Free plan, all completions count against your completions quota regardless of the model used. See Plans for GitHub Copilot.
The setting to enable or disable suggestions that match public code are applied irrespective of which model you choose. See Búsqueda de código público que coincida con sugerencias de GitHub Copilot.
Enabling the model switcher
If you have a Copilot Free or Copilot Pro plan, the model switcher for Copilot code completion is automatically enabled.
Si usas un plan de o , la organización o empresa que proporciona tu plan debe habilitar la opción Editor preview features. Consulta Administración de directivas de Copilot para empresas en su organización o Managing policies and features for Copilot in your enterprise.
Changing the model used for code completion
You can switch the AI model that's used by Copilot code completion if:
- An alternative model is currently available
- You are using Visual Studio 17.14 Preview 2 or later
Nota:
The list of available models will change over time. When only one code completion model is available, the model picker will only show that model. Preview models and additional code completion models will be added to the picker as they become available.
For details of how to switch the model for Copilot code completion, see Cambio del modelo de IA para la finalización del código de Copilot.
Effects of switching the AI model
Changing the model that's used for Copilot code completion does not affect the model that's used by Copilot next edit suggestions or Copilot Chat. See Cambio del modelo de IA para Copilot Chat.
There are no changes to the data collection and usage policy if you change the AI model.
If you are on a Copilot Free plan, all completions count against your completions quota regardless of the model used. See Plans for GitHub Copilot.
The setting to enable or disable suggestions that match public code are applied irrespective of which model you choose. See Búsqueda de código público que coincida con sugerencias de GitHub Copilot.
Enabling the model switcher
If you have a Copilot Free or Copilot Pro plan, the model switcher for Copilot code completion is automatically enabled.
Si usas un plan de o , la organización o empresa que proporciona tu plan debe habilitar la opción Editor preview features. Consulta Administración de directivas de Copilot para empresas en su organización o Managing policies and features for Copilot in your enterprise.
Changing the model used for code completion
You can switch the AI model that's used by Copilot code completion if:
- An alternative model is currently available
- You are using the latest release of JetBrains IDEs with the latest version of the GitHub Copilot extension
Nota:
The list of available models will change over time. When only one code completion model is available, the model picker will only show that model. Preview models and additional code completion models will be added to the picker as they become available.
For details of how to switch the model for Copilot code completion, see Cambio del modelo de IA para la finalización del código de Copilot.
Effects of switching the AI model
Changing the model that's used for Copilot code completion does not affect the model that's used by Copilot next edit suggestions or Copilot Chat. See Cambio del modelo de IA para Copilot Chat.
There are no changes to the data collection and usage policy if you change the AI model.
If you are on a Copilot Free plan, all completions count against your completions quota regardless of the model used. See Plans for GitHub Copilot.
The setting to enable or disable suggestions that match public code are applied irrespective of which model you choose. See Búsqueda de código público que coincida con sugerencias de GitHub Copilot.
Enabling the model switcher
If you have a Copilot Free or Copilot Pro plan, the model switcher for Copilot code completion is automatically enabled.
Si usas un plan de o , la organización o empresa que proporciona tu plan debe habilitar la opción Editor preview features. Consulta Administración de directivas de Copilot para empresas en su organización o Managing policies and features for Copilot in your enterprise.
Programming languages included in the default model
The following programming languages and technologies are included in the training data for the default LLM used for Copilot code completion:
- C
- C#
- C++
- Clojure
- CSS
- Dart
- Dockerfile
- Elixir
- Emacs Lisp
- Go
- Haskell
- HTML
- Java
- JavaScript
- Julia
- Jupyter Notebook
- Kotlin
- Lua
- MATLAB
- Objective-C
- Perl
- PHP
- PowerShell
- Python
- R
- Ruby
- Rust
- Scala
- Shell
- Swift
- TeX
- TypeScript
- Vue