Shortcut
GitHub Insert a Code Suggestion Shortcut
The GitHub shortcut to insert a code suggestion is Ctrl + G on Windows. On Mac, press Cmd + G.
Quick Answer
- Windows
- Ctrl+G
- Mac
- Cmd+G
- Web
- Not confirmed yet
GitHubShortcut
Insert a Code Suggestion
Wraps the selected lines in a pull request review suggestion block.
How to insert a code suggestion in GitHub
- Open GitHub and go to where you want to insert a code suggestion.
- Press Ctrl + G on Windows or Cmd + G on Mac.
GitHub Insert a Code Suggestion Shortcut for Windows
Press Ctrl + G.
GitHub Insert a Code Suggestion Shortcut for Mac
Press Cmd + G.
GitHub Insert a Code Suggestion Shortcut for GitHub Web
We haven't confirmed a GitHub Web shortcut for this yet.
Related Keyboard Shortcuts
Frequently asked questions
What is the GitHub insert a code suggestion shortcut?
On Windows, press Ctrl + G. On a Mac, press Cmd + G.
Is there a Mac shortcut to insert a code suggestion in GitHub?
Yes: Cmd + G.
Does it work in GitHub for the web?
We haven't confirmed a web version shortcut for this yet.
Official source · How we verify