Skip to main content

Copilot code suggestions in your IDE

Learn about Copilot code suggestions in different IDEs.'

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.
  • Vorschläge für nächste Bearbeitung (public preview)
    • 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 Vorschläge für nächste Bearbeitung, see Konfigurieren von GitHub Copilot in deiner Umgebung.

GitHub Copilot bietet Vorschläge für zahlreiche Sprachen und eine vielzahl von Frameworks, funktioniert aber besonders gut für Python, JavaScript, TypeScript, Ruby, Go, C# und C++. GitHub Copilot kann auch bei der Abfragegenerierung für Datenbanken helfen, Vorschläge für APIs und Frameworks generieren und bei der Entwicklung von Infrastruktur als Code helfen.

About code suggestions in JetBrains IDEs

Copilot offers code completion suggestions as you type.

GitHub Copilot bietet Vorschläge für zahlreiche Sprachen und eine vielzahl von Frameworks, funktioniert aber besonders gut für Python, JavaScript, TypeScript, Ruby, Go, C# und C++. GitHub Copilot kann auch bei der Abfragegenerierung für Datenbanken helfen, Vorschläge für APIs und Frameworks generieren und bei der Entwicklung von Infrastruktur als Code helfen.

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.
  • Vorschläge für nächste Bearbeitung (public preview)
    • 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 Vorschläge für nächste Bearbeitung, see Konfigurieren von GitHub Copilot in deiner Umgebung.

GitHub Copilot bietet Vorschläge für zahlreiche Sprachen und eine vielzahl von Frameworks, funktioniert aber besonders gut für Python, JavaScript, TypeScript, Ruby, Go, C# und C++. GitHub Copilot kann auch bei der Abfragegenerierung für Datenbanken helfen, Vorschläge für APIs und Frameworks generieren und bei der Entwicklung von Infrastruktur als Code helfen.

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.

Hinweis

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 Ändern des KI-Modells für die Copilot-Codevervollständigung.

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 Ändern des KI-Modells für 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 Suchen von öffentlichem Code, der mit GitHub Copilot-Vorschlägen übereinstimmt.

Enabling the model switcher

If you have a Copilot Free or Copilot Pro plan, the model switcher for Copilot code completion is automatically enabled.

Wenn du einen Copilot Business-Plan verwendest, muss die Organisation mit dem Plan die Einstellung Editor preview features aktivieren. Weitere Informationen findest du unter Verwalten von Richtlinien für Copilot in Ihrer Organisation.

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

Hinweis

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 Ändern des KI-Modells für die Copilot-Codevervollständigung.

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 Ändern des KI-Modells für 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 Suchen von öffentlichem Code, der mit GitHub Copilot-Vorschlägen übereinstimmt.

Enabling the model switcher

If you have a Copilot Free or Copilot Pro plan, the model switcher for Copilot code completion is automatically enabled.

Wenn du einen Copilot Business-Plan verwendest, muss die Organisation mit dem Plan die Einstellung Editor preview features aktivieren. Weitere Informationen findest du unter Verwalten von Richtlinien für Copilot in Ihrer Organisation.

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

Hinweis

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 Ändern des KI-Modells für die Copilot-Codevervollständigung.

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 Ändern des KI-Modells für 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 Suchen von öffentlichem Code, der mit GitHub Copilot-Vorschlägen übereinstimmt.

Enabling the model switcher

If you have a Copilot Free or Copilot Pro plan, the model switcher for Copilot code completion is automatically enabled.

Wenn du einen Copilot Business-Plan verwendest, muss die Organisation mit dem Plan die Einstellung Editor preview features aktivieren. Weitere Informationen findest du unter Verwalten von Richtlinien für Copilot in Ihrer Organisation.

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

Next steps