ショートカットキー一覧
GitHub WebUI と GitHub Copilot のショートカットキーをまとめます。
GitHub WebUI
Section titled “GitHub WebUI”グローバルショートカット
Section titled “グローバルショートカット”| キー | 動作 |
|---|---|
s または / | 検索バーにフォーカス |
g n | 通知ページへ移動 |
g d | ダッシュボードへ移動 |
? | ショートカット一覧を表示 |
Esc | ダイアログを閉じる |
リポジトリページ
Section titled “リポジトリページ”| キー | 動作 |
|---|---|
g c | Codeタブへ移動 |
g i | Issuesタブへ移動 |
g p | Pull requestsタブへ移動 |
g a | Actionsタブへ移動 |
g b | Projectsタブへ移動 |
g w | Wikiタブへ移動 |
t | ファイル検索を開く |
w | ブランチ切り替え |
l | 行番号へジャンプ |
. | github.devエディタで開く |
, | Codespacesで開く |
ファイル表示
Section titled “ファイル表示”| キー | 動作 |
|---|---|
b | Blameビューに切り替え |
y | 固定URLを取得 |
l | 行番号へジャンプ |
Issue / PR
Section titled “Issue / PR”| キー | 動作 |
|---|---|
c | 新しいIssue/PRを作成 |
a | アサインを設定 |
l | ラベルを設定 |
m | マイルストーンを設定 |
r | コメント入力にフォーカス |
PRのファイル変更
Section titled “PRのファイル変更”| キー | 動作 |
|---|---|
j | 次のファイルへ |
k | 前のファイルへ |
c | コメントを追加 |
t | ファイルツリーを切り替え |
| キー | 動作 |
|---|---|
↑ / ↓ | 結果を移動 |
Enter | 選択した結果を開く |
GitHub Copilot(VS Code)
Section titled “GitHub Copilot(VS Code)”| キー | 動作 |
|---|---|
Tab | 提案を採用 |
Esc | 提案を却下 |
Ctrl + ] | 次の候補を表示(Windows/Linux) |
Ctrl + [ | 前の候補を表示 |
Alt + ] | 次の単語のみ採用 |
Ctrl + Enter | 複数候補パネルを開く |
| キー | 動作 |
|---|---|
Tab | 提案を採用 |
Esc | 提案を却下 |
Option + ] | 次の候補を表示 |
Option + [ | 前の候補を表示 |
Cmd + Enter | 複数候補パネルを開く |
Copilot Chat
Section titled “Copilot Chat”| キー(Windows/Linux) | キー(Mac) | 動作 |
|---|---|---|
Ctrl + Shift + I | Cmd + Shift + I | Chatパネルを開く |
Ctrl + I | Cmd + I | インラインChatを開く |
Ctrl + L | Cmd + L | Chat入力をクリア |
Git コマンド(よく使うもの)
Section titled “Git コマンド(よく使うもの)”# ステータス確認git status
# 変更を追加git add .git add <file>
# コミットgit commit -m "message"
# プッシュgit push origin <branch>
# プルgit pull origin <branch>ブランチ操作
Section titled “ブランチ操作”# ブランチ一覧git branch
# ブランチ作成git checkout -b <branch>
# ブランチ切り替えgit checkout <branch>git switch <branch>
# ブランチ削除git branch -d <branch># ログ表示git loggit log --onelinegit log --graph
# 差分確認git diffgit diff --staged# ステージング取り消しgit reset HEAD <file>
# 直前のコミット修正git commit --amend
# コミット取り消し(変更保持)git reset --soft HEAD~1GitHub CLI(gh)
Section titled “GitHub CLI(gh)”よく使うコマンド
Section titled “よく使うコマンド”# PR作成gh pr create
# PR一覧gh pr list
# Issue作成gh issue create
# リポジトリをブラウザで開くgh repo view --web
# ワークフロー監視gh run watchエイリアス例
Section titled “エイリアス例”# 設定gh alias set co 'pr checkout'gh alias set pv 'pr view --web'gh alias set mypr 'pr list --author @me'カスタマイズ
Section titled “カスタマイズ”VS Code キーバインド設定
Section titled “VS Code キーバインド設定”keybindings.json:
[ { "key": "ctrl+shift+space", "command": "github.copilot.generate", "when": "editorTextFocus" }, { "key": "ctrl+alt+c", "command": "github.copilot.toggleCopilot" }]Git エイリアス設定
Section titled “Git エイリアス設定”~/.gitconfig:
[alias] co = checkout br = branch ci = commit st = status lg = log --oneline --graph --all unstage = reset HEAD -- last = log -1 HEADQ1. GitHub WebUIで検索バーにフォーカスするショートカットキーはどれですか?
Q2. リポジトリをgithub.devエディタで開くショートカットキーはどれですか?
Q3. GitHub Copilotのコード提案を採用するキーはどれですか?