Skip to main content

Testing changes to content exclusions in your IDE

You can confirm your changes to content exclusions work as expected using your IDE.

Wer kann dieses Feature verwenden?

Repositoryadministratoren und Organisationsbesitzer können Inhaltsausschlusseinstellungen verwalten.

Personen mit der Rolle "Verwalten" für ein Repository können Inhaltsausschlusseinstellungen für dieses Repository anzeigen, aber nicht bearbeiten.

Organisationen mit einem Abonnement für GitHub Copilot Business oder GitHub Copilot Enterprise.

Note

  • Inhalte von GitHub Copilot auszuschließen liegt derzeit als öffentliche Betaversion vor und kann noch geändert werden.
  • Inhaltsausschlüsse werden derzeit in ausgewählten IDEs unterstützt. Weitere Informationen finden Sie unter About content exclusions for GitHub Copilot.

Propagating content exclusion changes to Visual Studio Code

In VS Code, you can wait up to 30 minutes to see the effect of a settings change, or you can manually reload content exclusion settings as follows:

  1. Access the Command Palette. For example, by pressing Shift+Command+P (Mac) / Ctrl+Shift+P (Windows/Linux).
  2. Type: reload.
  3. Select Developer: Reload Window.

Testing changes to content exclusions in Visual Studio Code

After content exclusion changes propagate to VS Code, the Copilot icon indicates when Copilot has been disabled by a content exclusion.

  1. Open a file that you expect to be affected by your content exclusions.

    If a Copilot content exclusion applies to this file, the Copilot icon in the status bar has a diagonal line through it.

  2. Hover over the Copilot icon. A popup message tells you whether an organization or the parent repository disabled Copilot for this file.

    Screenshot of the Copilot disabled popup in the VS Code toolbar.

  3. Optionally, you can also test content exclusions in Copilot Chat. Open the Copilot Chat window by clicking the Copilot Chat icon in the activity bar.

    Screenshot of the Copilot Chat icon in the Activity Bar.

  4. Stellen Sie Copilot Chat eine Frage zu der ausgeschlossenen Datei. Wenn Ihre Inhalte erfolgreich ausgeschlossen werden, können Copilot Ihre Frage nicht beantworten und erklären, dass einige Dateien aufgrund von Inhaltsausschlussregeln von der Unterhaltung ausgeschlossen wurden.

Propagating content exclusion changes to Visual Studio

In Visual Studio, you can wait up to 30 minutes to see the effect of a settings change, or you can manually reload the content exclusion settings by closing and reopening the application.

Testing changes to content exclusions in Visual Studio

In Visual Studio, the Copilot icon indicates when Copilot has been disabled by a content exclusion.

  1. Open a file that you expect to be affected by your content exclusions.

    If a Copilot content exclusion applies to this file, the Copilot icon in the status bar has a diagonal line through it.

  2. Hover over the Copilot icon. A popup message tells you whether an organization or the parent repository disabled Copilot for this file.

    Screenshot of the Copilot disabled popup in the VS Code toolbar.

Propagating content exclusion changes to JetBrains IDEs

In supported JetBrains IDEs, you can wait up to 30 minutes to see the effect of a settings change, or you can manually reload the content exclusion settings by closing and reopening the application.

Testing changes to content exclusions in JetBrains IDEs

In supported JetBrains IDEs, the Copilot icon indicates when Copilot has been disabled by a content exclusion.

  1. Open a file that you expect to be affected by your content exclusions.

    If a Copilot content exclusion applies to this file, the Copilot icon in the status bar has a diagonal line through it.

  2. Hover over the Copilot icon. A popup message tells you whether an organization or the parent repository disabled Copilot for this file.

    Screenshot of the Copilot disabled popup in the VS Code toolbar.

  3. Optionally, you can also test content exclusions in Copilot Chat. Open the Copilot Chat window by clicking the Copilot Chat icon at the right side of the JetBrains IDE window.

    Screenshot of the Copilot Chat icon in the Activity Bar.

  4. Stellen Sie Copilot Chat eine Frage zu der ausgeschlossenen Datei. Wenn Ihre Inhalte erfolgreich ausgeschlossen werden, können Copilot Ihre Frage nicht beantworten und erklären, dass einige Dateien aufgrund von Inhaltsausschlussregeln von der Unterhaltung ausgeschlossen wurden.

Propagating content exclusion changes to Vim/Neovim

If you are working in Vim/Neovim, content exclusions are automatically fetched from GitHub each time you open a file.

Testing changes to content exclusions in Vim/Neovim

  1. Open a file that you expect to be affected by your content exclusions.
  2. Begin typing. If GitHub Copilot no longer provides inline suggestions as you type, the file is excluded.