Skip to main content

GitHub Copilot

info
brew install gh
gh auth login
gh extension install github/gh-copilot # 安装 Copilot 扩展
gh extension upgrade gh-copilot # 升级 Copilot 扩展

gh copilot config # 配置 Copilot

gh copilot explain "sudo apt-get"

# GH_DEBUG
# GH_HOST
# ghcs -> gh copilot suggest
# ghce -> gh copilot explain
[ -n "$BASH_VERSION" ] && eval "$(gh copilot alias -- bash)"
[ -n "$ZSH_VERSION" ] && eval "$(gh copilot alias -- zsh)"

curl https://copilot-proxy.githubusercontent.com/_ping

IDEA Shortcut

keyfor
Tab接受建议
Esc取消建议
Alt + ],Option + ]下一个建议
Alt + [,Option + [上一个建议
Alt + </kbd>,Option + </kbd>触发建议
Alt + Enter,Option + Enter显示建议侧边栏
Ctrl + Shift + GInline Chat
Ctrl + Shift + CChat

VSC Shortcut

keyfor

Reference