How to use "Next/Previous" suggestion shortcuts for Github Copilot on a Mac?

Viewed 531

I am trying to use GitHub Copilot on my Mac with Pycharm. Tab works great but I can't cycle through the previous and next code suggestion. Documentation says I should use:

Option+]
 
Option+[

but if I do, I only get brackets in my code. I should just press Option + 5 or Option + 6 right?

1 Answers

I thought I had this problem.

It turned out that the current version of copilot simply only had one suggestion in a lot of cases.

You can see if copilot has alternate suggestions by hovering your mouse over the suggestion. For me, in the cases where the keyboard shortcuts 'didn't work', there simply were no other suggestions available.

Related