# GitHub Copilot ショートカット

[![](https://img.shields.io/badge/Lv3-Mature_Best_Practice-brightgreen)](https://github.com/orgs/AI-Native-Development/projects/1/)

## Description

GitHub Copilot は、開発者にコーディングプロセスを加速させるためのキーボードショートカットを提供します。これらのショートカットは、GitHub Copilot のAIによる提案とのナビゲーションやインタラクションを直感的かつ効率的に行うのに役立ちます。このパターンでは、GitHub Copilot を使用した迅速なコード開発に不可欠なキーボードショートカットを探求します。

### Example

例えば、GitHub Copilot からの提案を受け入れるには、`TAB` を押すだけで良いです。以下はいくつかの重要なショートカットのリストです:

* 提案を受け入れる: `TAB`
* 提案を拒否する: `Esc`
* 複数の提案を表示する: `Ctrl` + `Enter`
* 単語レベルで受け入れる: `Ctrl` + `→`
* 次の提案を見る: `Alt` + `]`
* 前の提案を見る: `Alt` + `[`
* インライン提案をトリガーする: `Alt` + `/`
* Labs 機能リストを表示する: `Ctrl` + `Shift` + `Alt` + `e`
* サイドバーを切り替える: `Ctrl` + `Shift` + `a`

## Exercise

* **エクササイズ 1**: 現在のプロジェクトで `TAB` を使って GitHub Copilot の提案を受け入れてみてください。
* **エクササイズ 2**: `Esc` を押して提案を拒否してみてください。何が起きますか?
* **エクササイズ 3**: `Ctrl` + `Enter` を使用して組み合わせた提案を確認します。それらを探索し、有用なものを特定してみてください。
* **エクササイズ 4**: `Alt` + `]` と `Alt` + `[` を使用して提案をナビゲートしてみてください。コード選択プロセスにどう影響しますか?
* **エクササイズ 5**: 上記の他のショートカットを試し、それぞれの経験を説明してみてください。

## Checklist for Further Learning

* GitHub Copilot の提案を受け入れたり拒否したりするショートカットを身につけましたか?
* 複数の提案をナビゲートするショートカットを使うのに慣れましたか?
* GitHub Copilot でのコーディング経験を向上させるために、VSCode 内で他にどのようなショートカットがありますか?
* 自分の個人的なコーディングワークフローに合うようにショートカットをカスタマイズする方法はありますか?
* これらのショートカットの使用は、Visual Studio Code と GitHub Copilot でのみ、または他のコーディング環境でも私に役立つ可能性がありますか?


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://ai-native-development.gitbook.io/docs/ja/client-side-tips/github-copilot-shortcuts.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
