Skip to main content
ドキュメントへの更新が頻繁に発行されており、このページの翻訳はまだ行われている場合があります。 最新の情報については、「英語のドキュメント」を参照してください。

Configuring GitHub Copilot in your environment

You can enable, configure, or disable GitHub Copilot in a supported IDE.

GitHub Copilot は、GitHub Copilot for Individuals の個人アカウントと GitHub Copilot for Business の Organization アカウントで利用できます。

確認が取れている学生、教師、およびパブリックのオープン ソース プロジェクトのメンテナンス担当者は、GitHub Copilot を無料で使うことができます。 学生、教師、または一般的なオープンソース プロジェクトのメンテナンス担当者ではない場合にも、1 回限りの 60 日間の試用版で GitHub Copilot を無料で試すことができます。 無料試用版の後、継続して使用するために有料サブスクリプションが必要になります。詳細については、「GitHub Copilot の課金について」を参照してください。

About GitHub Copilot in JetBrains IDEs

If you use a JetBrains IDE, GitHub Copilot can autocomplete code as you type. After installation, you can enable or disable GitHub Copilot, and you can configure advanced settings within your IDE or on GitHub.com. This article describes how to configure GitHub Copilot in the IntelliJ IDE, but the user interfaces of other JetBrains IDEs may differ.

GitHub Copilot の設定を GitHub.com で構成する

アクティブな GitHub Copilot 試用版またはサブスクリプションがある場合、GitHub Copilot 設定で GitHub 上の個人用アカウントの GitHub Copilot 設定を調整できます。 この設定は、GitHub Copilot を使うすべての場所に適用されます。 GitHub Copilot が提示する候補と、GitHub がテレメトリ データを使う方法を構成できます。

重複検出の有効化または無効化

注: あなたが GitHub Enterprise Cloud 上の Organization のメンバーで、Organization を通じて GitHub Copilot シートが割り当てられている場合、個人アカウント設定で重複検出を構成することはできません。 重複検出設定は、Organization または Enterprise から継承されます。

GitHub Copilot には、GitHub のパブリック コードと一致するコード候補を検出するフィルターが含まれています。 フィルターを有効または無効にすることを選択できます。 フィルターが有効になっていると、GitHub Copilot によって、周囲の約 150 文字のコードに関するコード候補が、GitHub でのパブリック コードに対してチェックされます。 一致または近い一致がある場合、候補は表示されません。

  1. 任意のページで、右上隅にあるプロファイルの画像をクリックし、次に[設定]をクリックします。

    GitHub のアカウント メニューのスクリーンショット。ユーザーがプロファイル、コンテンツ、設定を表示および編集するためのオプションが表示されています。 メニュー項目 [設定] が濃いオレンジ色の枠線で囲まれています。 1. 左サイドバーで、 GitHub Copilot をクリックします。

  2. Suggestions matching public code でドロップダウン メニューを選択し、 Allow をクリックして公開コードに一致する候補を許可するか、 Block をクリックして公開コードに一致する候補をブロックします。 重複検出オプションのスクリーンショット 1. 新しい設定を確認するには、 [保存] をクリックします。

テレメトリの有効化または無効化

注: Copilot for Business には、テレメトリまたはコード スニペット データは保持されません。

ユーザー設定を調整することで、GitHub によってコード スニペットを収集して保持し、さらに処理して Microsoft や OpenAI と共有するかどうかを選択できます。 テレメトリの設定によって GitHub Copilot が収集するデータの詳細については、「追加の製品および機能に適用される GitHub 条件」と GitHub Copilot のプライバシーに関する FAQ を参照してください。

  1. 任意のページで、右上隅にあるプロファイルの画像をクリックし、次に[設定]をクリックします。

    GitHub のアカウント メニューのスクリーンショット。ユーザーがプロファイル、コンテンツ、設定を表示および編集するためのオプションが表示されています。 メニュー項目 [設定] が濃いオレンジ色の枠線で囲まれています。 1. 左サイドバーで、 GitHub Copilot をクリックします。

  2. GitHub でテレメトリデータの使用を許可または禁止するには、 [GitHub で製品向上のためにコード スニペットを使用することを許可する] をオンまたはオフにします。 テレメトリ オプションのスクリーンショット 1. 新しい設定を確認するには、 [保存] をクリックします。

参考資料

Prerequisites

To configure GitHub Copilot in a JetBrains IDE, you must install the GitHub Copilot plugin. For more information, see "Getting started with GitHub Copilot."

Keyboard shortcuts for GitHub Copilot

You can use the default keyboard shortcuts for inline suggestions in your JetBrains IDE when using GitHub Copilot. Alternatively, you can rebind the shortcuts to your preferred keyboard shortcuts for each specific command. For more information on rebinding keyboard shortcuts in your JetBrains IDE, see the JetBrains documentation. For example, you can view the IntelliJ IDEA documentation.

Keyboard shortcuts for macOS

ActionShortcut
Accept an inline suggestionTab
Dismiss an inline suggestionEsc
Show next inline suggestionOption (⌥) or Alt+]
Show previous inline suggestionOption (⌥) or Alt+[
Trigger inline suggestionOption (⌥)+\
Open GitHub Copilot (additional suggestions in separate pane)Option (⌥) or Alt+Return

Keyboard shortcuts for Windows

ActionShortcut
Accept an inline suggestionTab
Dismiss an inline suggestionEsc
Show next inline suggestionAlt+]
Show previous inline suggestionAlt+[
Trigger inline suggestionAlt+\
Open GitHub Copilot (additional suggestions in separate pane)Alt+Enter

Keyboard shortcuts for Linux

ActionShortcut
Accept an inline suggestionTab
Dismiss an inline suggestionEsc
Show next inline suggestionAlt+]
Show previous inline suggestionAlt+[
Trigger inline suggestionAlt+\
Open GitHub Copilot (additional suggestions in separate pane)Alt+Enter

Enabling or disabling GitHub Copilot

You can enable or disable GitHub Copilot from within your JetBrains IDE. The GitHub Copilot status icon in the bottom panel of the JetBrains window indicates whether GitHub Copilot is enabled or disabled. When enabled, the icon is highlighted. When disabled, the icon is grayed out.

  1. To enable or disable GitHub Copilot, click the status icon in the bottom panel on the right of the JetBrains window.

    Screenshot of the bottom panel in a JetBrains IDE. The GitHub Copilot status icon is outlined in dark orange.

  2. If you are disabling GitHub Copilot, you will be asked whether you want to disable it globally, or for the language of the file you are currently editing. To disable globally, click Disable Completions. Alternatively, click the language-specific button to disable GitHub Copilot for the specified language.

    Screenshot of the menu to disable GitHub Copilot globally or for the current language in a JetBrains IDE

Configuring advanced settings for GitHub Copilot

You can manage advanced settings for GitHub Copilot in your JetBrains IDE, such as how your IDE displays code completions, and which languages you want to enable or disable for GitHub Copilot.

  1. In your JetBrains IDE, click the File menu, then click Settings.
  2. Under Languages & Frameworks, click GitHub Copilot.
  3. Edit the settings according to your personal preferences.
    • To adjust the behavior and appearance of code suggestions, and whether to automatically check for updates, select or deselect the corresponding checkboxes.
    • If you have selected to receive automatic updates, you can choose whether to receive stable, but less frequent updates, or nightly updates, which may be less stable. Click the Update channel dropdown and select Stable for stable updates, or Nightly for nightly updates.
    • Under "Disabled languages," use the checkboxes to select or deselect the languages you want to disable GitHub Copilot for.

Configuring proxy settings for GitHub Copilot

You can configure GitHub Copilot to connect through an HTTP proxy server in a JetBrains IDE. GitHub Copilot supports basic HTTP proxy setups, with or without basic authentication.

  1. In your JetBrains IDE, click the File menu, then click Settings.
  2. Under Appearance & Behavior, click System Settings and then click HTTP Proxy.
  3. Select Manual proxy configuration, and then select HTTP.
  4. In the "Host name" field, enter the hostname of your proxy server, and in the "Port number" field, enter the port number of your proxy server.
  5. Optionally, in the left sidebar, click Tools and then click Server Certificates. Then select or deselect Accept non-trusted certificates automatically, depending on whether you want to accept non-trusted certificates automatically.

GitHub Copilot の設定を GitHub.com で構成する

アクティブな GitHub Copilot 試用版またはサブスクリプションがある場合、GitHub Copilot 設定で GitHub 上の個人用アカウントの GitHub Copilot 設定を調整できます。 この設定は、GitHub Copilot を使うすべての場所に適用されます。 GitHub Copilot が提示する候補と、GitHub がテレメトリ データを使う方法を構成できます。

重複検出の有効化または無効化

注: あなたが GitHub Enterprise Cloud 上の Organization のメンバーで、Organization を通じて GitHub Copilot シートが割り当てられている場合、個人アカウント設定で重複検出を構成することはできません。 重複検出設定は、Organization または Enterprise から継承されます。

GitHub Copilot には、GitHub のパブリック コードと一致するコード候補を検出するフィルターが含まれています。 フィルターを有効または無効にすることを選択できます。 フィルターが有効になっていると、GitHub Copilot によって、周囲の約 150 文字のコードに関するコード候補が、GitHub でのパブリック コードに対してチェックされます。 一致または近い一致がある場合、候補は表示されません。

  1. 任意のページで、右上隅にあるプロファイルの画像をクリックし、次に[設定]をクリックします。

    GitHub のアカウント メニューのスクリーンショット。ユーザーがプロファイル、コンテンツ、設定を表示および編集するためのオプションが表示されています。 メニュー項目 [設定] が濃いオレンジ色の枠線で囲まれています。 1. 左サイドバーで、 GitHub Copilot をクリックします。

  2. Suggestions matching public code でドロップダウン メニューを選択し、 Allow をクリックして公開コードに一致する候補を許可するか、 Block をクリックして公開コードに一致する候補をブロックします。 重複検出オプションのスクリーンショット 1. 新しい設定を確認するには、 [保存] をクリックします。

テレメトリの有効化または無効化

注: Copilot for Business には、テレメトリまたはコード スニペット データは保持されません。

ユーザー設定を調整することで、GitHub によってコード スニペットを収集して保持し、さらに処理して Microsoft や OpenAI と共有するかどうかを選択できます。 テレメトリの設定によって GitHub Copilot が収集するデータの詳細については、「追加の製品および機能に適用される GitHub 条件」と GitHub Copilot のプライバシーに関する FAQ を参照してください。

  1. 任意のページで、右上隅にあるプロファイルの画像をクリックし、次に[設定]をクリックします。

    GitHub のアカウント メニューのスクリーンショット。ユーザーがプロファイル、コンテンツ、設定を表示および編集するためのオプションが表示されています。 メニュー項目 [設定] が濃いオレンジ色の枠線で囲まれています。 1. 左サイドバーで、 GitHub Copilot をクリックします。

  2. GitHub でテレメトリデータの使用を許可または禁止するには、 [GitHub で製品向上のためにコード スニペットを使用することを許可する] をオンまたはオフにします。 テレメトリ オプションのスクリーンショット 1. 新しい設定を確認するには、 [保存] をクリックします。

参考資料

About GitHub Copilot in Visual Studio

If you use Visual Studio, GitHub Copilot can autocomplete code as you type. After installation, you can enable or disable GitHub Copilot, and you can configure advanced settings within Visual Studio or on GitHub.com.

Prerequisites

To configure GitHub Copilot in Visual Studio, you must install the GitHub Copilot plugin. For more information, see "Getting started with GitHub Copilot."

Keyboard shortcuts for GitHub Copilot

You can use the default keyboard shortcuts in Visual Studio when using GitHub Copilot. Alternatively, you can rebind the shortcuts in the Tools settings for Visual Studio using your preferred keyboard shortcuts for each specific command. You can search for each keyboard shortcut by its command name in the Keyboard Shortcuts editor.

ActionShortcutCommand name
Show next inline suggestionAlt+.Tools.Nextsuggestion
Show previous inline suggestionAlt+,Tools.Previoussuggestion
Trigger inline suggestionCtrl+Alt+\Edit.Copilot.TriggerInlineSuggestion

Rebinding keyboard shortcuts

If you don't want to use the default keyboard shortcuts in Visual Studio when using GitHub Copilot, you can rebind the shortcuts in the Keyboard editor using your preferred keyboard shortcuts for each specific command.

  1. In the Visual Studio toolbar, under Tools, click Options.

    Screenshot of the Options option in the Visual Studio toolbar

  2. In the "Options" dialog, under Environment, click Keyboard.

  3. Under "Show commands containing:", search for the command you want to rebind.

    Screenshot of the show commands containing search bar

  4. Under "Press shortcut keys," type the shortcut you want to assign to the command, then click Assign.

    Screenshot of the keyboard shortcut assignment

GitHub Copilot の有効化または無効化

Visual Studio ウィンドウの下部パネルにある GitHub Copilot 状態アイコンは、GitHub Copilot が有効であるか無効であるかを示します。 有効にすると、アイコンの背景色はステータス バーの色と一致します。 無効にすると、異なるものになります。

  1. GitHub Copilot を有効または無効にするには、Visual Studio ウィンドウの下部パネルにある GitHub Copilot アイコンをクリックします。

    GitHub Copilot アイコンが強調された Visual Studio のエディターの端のスクリーンショット

  2. GitHub Copilot を無効にする場合は、候補をグローバルに無効にするか、現在編集中のファイルの言語に対して無効にするかを確認するメッセージが表示されます。

    • GitHub Copilot からの候補をグローバルに無効にするには、 [グローバルに有効にする] をクリックします。
    • 指定された言語に対して GitHub Copilot からの候補を無効にするには、 [言語に対して有効にする] をクリックします。

Configuring ReSharper for GitHub Copilot

If you use ReSharper, GitHub Copilot may work best when you configure ReSharper to use GitHub Copilot's native IntelliSense. For more information about ReSharper, see the ReSharper documentation

  1. In the Visual Studio toolbar, under Tools, click Options. Screenshot of the Options option in the Visual Studio toolbar
  2. In the "Options" dialog, under Environment, click IntelliSense and then click General.
  3. Under "General" select Visual Studio and then click Save.

GitHub Copilot の設定を GitHub.com で構成する

アクティブな GitHub Copilot 試用版またはサブスクリプションがある場合、GitHub Copilot 設定で GitHub 上の個人用アカウントの GitHub Copilot 設定を調整できます。 この設定は、GitHub Copilot を使うすべての場所に適用されます。 GitHub Copilot が提示する候補と、GitHub がテレメトリ データを使う方法を構成できます。

重複検出の有効化または無効化

注: あなたが GitHub Enterprise Cloud 上の Organization のメンバーで、Organization を通じて GitHub Copilot シートが割り当てられている場合、個人アカウント設定で重複検出を構成することはできません。 重複検出設定は、Organization または Enterprise から継承されます。

GitHub Copilot には、GitHub のパブリック コードと一致するコード候補を検出するフィルターが含まれています。 フィルターを有効または無効にすることを選択できます。 フィルターが有効になっていると、GitHub Copilot によって、周囲の約 150 文字のコードに関するコード候補が、GitHub でのパブリック コードに対してチェックされます。 一致または近い一致がある場合、候補は表示されません。

  1. 任意のページで、右上隅にあるプロファイルの画像をクリックし、次に[設定]をクリックします。

    GitHub のアカウント メニューのスクリーンショット。ユーザーがプロファイル、コンテンツ、設定を表示および編集するためのオプションが表示されています。 メニュー項目 [設定] が濃いオレンジ色の枠線で囲まれています。 1. 左サイドバーで、 GitHub Copilot をクリックします。

  2. Suggestions matching public code でドロップダウン メニューを選択し、 Allow をクリックして公開コードに一致する候補を許可するか、 Block をクリックして公開コードに一致する候補をブロックします。 重複検出オプションのスクリーンショット 1. 新しい設定を確認するには、 [保存] をクリックします。

テレメトリの有効化または無効化

注: Copilot for Business には、テレメトリまたはコード スニペット データは保持されません。

ユーザー設定を調整することで、GitHub によってコード スニペットを収集して保持し、さらに処理して Microsoft や OpenAI と共有するかどうかを選択できます。 テレメトリの設定によって GitHub Copilot が収集するデータの詳細については、「追加の製品および機能に適用される GitHub 条件」と GitHub Copilot のプライバシーに関する FAQ を参照してください。

  1. 任意のページで、右上隅にあるプロファイルの画像をクリックし、次に[設定]をクリックします。

    GitHub のアカウント メニューのスクリーンショット。ユーザーがプロファイル、コンテンツ、設定を表示および編集するためのオプションが表示されています。 メニュー項目 [設定] が濃いオレンジ色の枠線で囲まれています。 1. 左サイドバーで、 GitHub Copilot をクリックします。

  2. GitHub でテレメトリデータの使用を許可または禁止するには、 [GitHub で製品向上のためにコード スニペットを使用することを許可する] をオンまたはオフにします。 テレメトリ オプションのスクリーンショット 1. 新しい設定を確認するには、 [保存] をクリックします。

参考資料

About GitHub Copilot in Visual Studio Code

If you use Visual Studio Code, GitHub Copilot can autocomplete code as you type. After installation, you can enable or disable GitHub Copilot, and you can configure advanced settings within Visual Studio Code or on GitHub.com.

Prerequisites

To configure GitHub Copilot in Visual Studio Code, you must install the GitHub Copilot plugin. For more information, see "Getting started with GitHub Copilot."

Keyboard shortcuts for GitHub Copilot

You can use the default keyboard shortcuts in Visual Studio Code when using GitHub Copilot. Alternatively, you can rebind the shortcuts in the Keyboard Shortcuts editor using your preferred keyboard shortcuts for each specific command. You can search for each keyboard shortcut by command name in the Keyboard Shortcuts editor.

Keyboard shortcuts for macOS

ActionShortcutCommand name
Accept an inline suggestionTabeditor.action.inlineSuggest.commit
Dismiss an inline suggestionEsceditor.action.inlineSuggest.hide
Show next inline suggestionOption (⌥)+]
editor.action.inlineSuggest.showNext
Show previous inline suggestionOption (⌥)+[
editor.action.inlineSuggest.showPrevious
Trigger inline suggestionOption (⌥)+\
editor.action.inlineSuggest.trigger
Open GitHub Copilot (additional suggestions in separate pane)Ctrl+Returngithub.copilot.generate
Toggle GitHub Copilot on/offNo default shortcutgithub.copilot.toggleCopilot

Keyboard shortcuts for Windows

ActionShortcutCommand name
Accept an inline suggestionTabeditor.action.inlineSuggest.commit
Dismiss an inline suggestionEsceditor.action.inlineSuggest.hide
Show next inline suggestionAlt+]editor.action.inlineSuggest.showNext
Show previous inline suggestionAlt+[editor.action.inlineSuggest.showPrevious
Trigger inline suggestionAlt+\editor.action.inlineSuggest.trigger
Open GitHub Copilot (additional suggestions in separate pane)Ctrl+Entergithub.copilot.generate
Toggle GitHub Copilot on/offNo default shortcutgithub.copilot.toggleCopilot

Keyboard shortcuts for Linux

ActionShortcutCommand name
Accept an inline suggestionTabeditor.action.inlineSuggest.commit
Dismiss an inline suggestionEsceditor.action.inlineSuggest.hide
Show next inline suggestionAlt+]editor.action.inlineSuggest.showNext
Show previous inline suggestionAlt+[editor.action.inlineSuggest.showPrevious
Trigger inline suggestionAlt+\editor.action.inlineSuggest.trigger
Open GitHub Copilot (additional suggestions in separate pane)Ctrl+Entergithub.copilot.generate
Toggle GitHub Copilot on/offNo default shortcutgithub.copilot.toggleCopilot

Rebinding keyboard shortcuts

If you don't want to use the default keyboard shortcuts in Visual Studio Code when using GitHub Copilot, you can rebind the shortcuts in the Keyboard Shortcuts editor using your preferred keyboard shortcuts for each specific command.

Rebinding keyboard shortcuts for macOS

  1. Click Code, click Preferences, then click Keyboard Shortcuts.

    Screenshot of Visual Studio Code keyboard shortcuts

  2. In the "Keyboard Shortcuts" editor, search for the command name of the keyboard shortcut you want to change.

  3. Next to the command you want to change, click the pencil icon.

    Screenshot of Keyboard shortcut editor

  4. Type the keystrokes you want to use for the command, then press Enter/Return.

Rebinding keyboard shortcuts for Windows

  1. Click the File menu, click Preferences, then click Keyboard Shortcuts.

    Screenshot of Visual Studio Code keyboard shortcuts

  2. In the "Keyboard Shortcuts" editor, search for the command name of the keyboard shortcut you want to change.

  3. Next to the command you want to change, click the pencil icon.

    Screenshot of Keyboard shortcut editor

  4. Type the keystrokes you want to use for the command, then press Enter/Return.

Rebinding keyboard shortcuts for Linux

  1. Click the File menu, click Preferences, then click Keyboard Shortcuts.

    Screenshot of Visual Studio Code keyboard shortcuts

  2. In the "Keyboard Shortcuts" editor, search for the command name of the keyboard shortcut you want to change.

  3. Next to the command you want to change, click the pencil icon.

    Screenshot of Keyboard shortcut editor

  4. Type the keystrokes you want to use for the command, then press Enter/Return.

GitHub Copilot の有効化または無効化

Visual Studio Code 内から GitHub Copilot を有効または無効にすることができます。 Visual Studio Code ウィンドウの下部パネルにある GitHub Copilot 状態アイコンは、GitHub Copilot が有効であるか無効であるかを示します。 有効にすると、アイコンの背景色はステータス バーの色と一致します。 無効にすると、アイコンの背景色はステータス バーの色と異なります。

  1. GitHub Copilot を有効または無効にするには、Visual Studio Code ウィンドウの下部パネルにある状態アイコンをクリックします。

    Visual Studio Code の下部パネルのスクリーンショット。 GitHub Copilot アイコンが濃いオレンジ色の枠線で囲まれています。

  2. GitHub Copilot を無効にする場合は、候補をグローバルに無効にするか、現在編集中のファイルの言語に対して無効にするかを確認するメッセージが表示されます。

    • GitHub Copilot からの候補をグローバルに無効にするには、 [グローバルに無効にする] をクリックします。
    • 指定された言語に対して GitHub Copilot からの候補を無効にするには、 [言語に対して無効にする] をクリックします。 GitHub Copilot をグローバルに、または現在の言語に対して無効にするためのオプションのスクリーンショット

Enabling or disabling inline suggestions

You can choose to enable or disable inline suggestions for GitHub Copilot in Visual Studio Code.

  1. [File](ファイル) メニューで [Preferences](基本設定) に移動し、 [Settings](設定) をクリックします。 Visual Studio Code 設定のスクリーンショット
  2. In the left-side panel of the settings tab, click Extensions and then select Copilot.
  3. Under "Inline Suggest:Enable," select or deselect the checkbox to enable or disable inline suggestions.

Enabling or disabling GitHub Copilot for specific languages

You can specify which languages you want to enable or disable GitHub Copilot for.

  1. From the Visual Studio Code, click the Extensions tab, then navigate to the Copilot section. For more information, see "Enabling and disabling inline suggestions."

  2. Under "Enable or disable Copilot for specified languages," click Edit in settings.json.

  3. In the settings.json file, add or remove the languages you want to enable or disable GitHub Copilot for. For example, to enable Python in GitHub Copilot, add "python": true to the list, ensuring there is a trailing comma after all but the last list item.

    {
        "editor.inlineSuggest.enabled": true,
        "github.copilot.enable": {
            "*": true,
            "yaml": false,
            "plaintext": false,
            "markdown": true,
            "javascript": true,
            "python": true
        }
    }
    

Configuring proxy settings for GitHub Copilot

You can configure GitHub Copilot to connect through an HTTP proxy server in Visual Studio Code. GitHub Copilot supports basic HTTP proxy setups, with or without basic authentication.

  1. [File](ファイル) メニューで [Preferences](基本設定) に移動し、 [Settings](設定) をクリックします。 Visual Studio Code 設定のスクリーンショット
  2. In the left-side panel of the settings tab, click Application and then select Proxy.
  3. In the textbox under "Proxy", type the address of your proxy server, for example http://localhost:3128. Alternatively, GitHub Copilot will use the http_proxy and https_proxy variables from your environment.
  4. Optionally, under "Proxy Authorization", click Edit in settings.json and add your required value to send as the Proxy-Authorization header for every network request.
  5. Optionally, under "Proxy Strict SSL", select or deselect the checkbox to enable or disable strict SSL.

GitHub Copilot の設定を GitHub.com で構成する

アクティブな GitHub Copilot 試用版またはサブスクリプションがある場合、GitHub Copilot 設定で GitHub 上の個人用アカウントの GitHub Copilot 設定を調整できます。 この設定は、GitHub Copilot を使うすべての場所に適用されます。 GitHub Copilot が提示する候補と、GitHub がテレメトリ データを使う方法を構成できます。

重複検出の有効化または無効化

注: あなたが GitHub Enterprise Cloud 上の Organization のメンバーで、Organization を通じて GitHub Copilot シートが割り当てられている場合、個人アカウント設定で重複検出を構成することはできません。 重複検出設定は、Organization または Enterprise から継承されます。

GitHub Copilot には、GitHub のパブリック コードと一致するコード候補を検出するフィルターが含まれています。 フィルターを有効または無効にすることを選択できます。 フィルターが有効になっていると、GitHub Copilot によって、周囲の約 150 文字のコードに関するコード候補が、GitHub でのパブリック コードに対してチェックされます。 一致または近い一致がある場合、候補は表示されません。

  1. 任意のページで、右上隅にあるプロファイルの画像をクリックし、次に[設定]をクリックします。

    GitHub のアカウント メニューのスクリーンショット。ユーザーがプロファイル、コンテンツ、設定を表示および編集するためのオプションが表示されています。 メニュー項目 [設定] が濃いオレンジ色の枠線で囲まれています。 1. 左サイドバーで、 GitHub Copilot をクリックします。

  2. Suggestions matching public code でドロップダウン メニューを選択し、 Allow をクリックして公開コードに一致する候補を許可するか、 Block をクリックして公開コードに一致する候補をブロックします。 重複検出オプションのスクリーンショット 1. 新しい設定を確認するには、 [保存] をクリックします。

テレメトリの有効化または無効化

注: Copilot for Business には、テレメトリまたはコード スニペット データは保持されません。

ユーザー設定を調整することで、GitHub によってコード スニペットを収集して保持し、さらに処理して Microsoft や OpenAI と共有するかどうかを選択できます。 テレメトリの設定によって GitHub Copilot が収集するデータの詳細については、「追加の製品および機能に適用される GitHub 条件」と GitHub Copilot のプライバシーに関する FAQ を参照してください。

  1. 任意のページで、右上隅にあるプロファイルの画像をクリックし、次に[設定]をクリックします。

    GitHub のアカウント メニューのスクリーンショット。ユーザーがプロファイル、コンテンツ、設定を表示および編集するためのオプションが表示されています。 メニュー項目 [設定] が濃いオレンジ色の枠線で囲まれています。 1. 左サイドバーで、 GitHub Copilot をクリックします。

  2. GitHub でテレメトリデータの使用を許可または禁止するには、 [GitHub で製品向上のためにコード スニペットを使用することを許可する] をオンまたはオフにします。 テレメトリ オプションのスクリーンショット 1. 新しい設定を確認するには、 [保存] をクリックします。

参考資料

Configuring GitHub Copilot in Neovim

For guidance on configuring GitHub Copilot in Neovim, invoke the GitHub Copilot documentation in Neovim by running the following command:

:help copilot

GitHub Copilot の設定を GitHub.com で構成する

アクティブな GitHub Copilot 試用版またはサブスクリプションがある場合、GitHub Copilot 設定で GitHub 上の個人用アカウントの GitHub Copilot 設定を調整できます。 この設定は、GitHub Copilot を使うすべての場所に適用されます。 GitHub Copilot が提示する候補と、GitHub がテレメトリ データを使う方法を構成できます。

重複検出の有効化または無効化

注: あなたが GitHub Enterprise Cloud 上の Organization のメンバーで、Organization を通じて GitHub Copilot シートが割り当てられている場合、個人アカウント設定で重複検出を構成することはできません。 重複検出設定は、Organization または Enterprise から継承されます。

GitHub Copilot には、GitHub のパブリック コードと一致するコード候補を検出するフィルターが含まれています。 フィルターを有効または無効にすることを選択できます。 フィルターが有効になっていると、GitHub Copilot によって、周囲の約 150 文字のコードに関するコード候補が、GitHub でのパブリック コードに対してチェックされます。 一致または近い一致がある場合、候補は表示されません。

  1. 任意のページで、右上隅にあるプロファイルの画像をクリックし、次に[設定]をクリックします。

    GitHub のアカウント メニューのスクリーンショット。ユーザーがプロファイル、コンテンツ、設定を表示および編集するためのオプションが表示されています。 メニュー項目 [設定] が濃いオレンジ色の枠線で囲まれています。 1. 左サイドバーで、 GitHub Copilot をクリックします。

  2. Suggestions matching public code でドロップダウン メニューを選択し、 Allow をクリックして公開コードに一致する候補を許可するか、 Block をクリックして公開コードに一致する候補をブロックします。 重複検出オプションのスクリーンショット 1. 新しい設定を確認するには、 [保存] をクリックします。

テレメトリの有効化または無効化

注: Copilot for Business には、テレメトリまたはコード スニペット データは保持されません。

ユーザー設定を調整することで、GitHub によってコード スニペットを収集して保持し、さらに処理して Microsoft や OpenAI と共有するかどうかを選択できます。 テレメトリの設定によって GitHub Copilot が収集するデータの詳細については、「追加の製品および機能に適用される GitHub 条件」と GitHub Copilot のプライバシーに関する FAQ を参照してください。

  1. 任意のページで、右上隅にあるプロファイルの画像をクリックし、次に[設定]をクリックします。

    GitHub のアカウント メニューのスクリーンショット。ユーザーがプロファイル、コンテンツ、設定を表示および編集するためのオプションが表示されています。 メニュー項目 [設定] が濃いオレンジ色の枠線で囲まれています。 1. 左サイドバーで、 GitHub Copilot をクリックします。

  2. GitHub でテレメトリデータの使用を許可または禁止するには、 [GitHub で製品向上のためにコード スニペットを使用することを許可する] をオンまたはオフにします。 テレメトリ オプションのスクリーンショット 1. 新しい設定を確認するには、 [保存] をクリックします。

参考資料