Skip to main content

在环境中配置 GitHub Copilot

可以在受支持的 IDE 中启用、配置或禁用 GitHub Copilot。

本文内容

Configuring GitHub Copilot in Vim/Neovim

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

:help copilot

Rebinding keyboard shortcuts

You can rebind the keyboard shortcuts in Vim/Neovim when using GitHub Copilot to use your preferred keyboard shortcuts for each specific command. For more information, see the Map article in the Neovim documentation.

Configuring GitHub Copilot settings on GitHub.com

If you are using a GitHub Copilot Pro subscription, you can choose to allow or block code completion suggestions that match publicly available code. You configure this in your personal settings on GitHub.com. See Managing Copilot policies as an individual subscriber.

Further reading

Authenticating to an account on GHE.com

If you're using a Copilot subscription for a managed user account account on GHE.com, you'll need to update some settings before you sign in. See Using GitHub Copilot with an account on GHE.com.