Search code examples
pythonautocompletepycharmgithub-copilot

How to accept only the next word in PyCharm GitHub copilot suggestion


I would like to be able to accept only the next word of a github Copilot suggestion instead of the full suggestion. This is possible with VS Code as documented here. Is there a way to do this in PyCharm too?


Solution

  • This feature has been added with a recent update for the GitHub Copilot extension. One may now hit Ctrl + Right to accept the next word only, and in a multiline suggestion also Ctrl + Alt + Right to accept the next line only.