GitLens Documentation

GitLens Code Suggest

Last updated: November 2026

What Is Code Suggest?

Code Suggest lets a reviewer propose edits to any file in a repository, including lines a pull request did not change, and attach them to the pull request as a Code Suggestion. Reviewers create Code Suggestions in GitKraken Desktop.

In GitLens, you find the Code Suggestions on a pull request, apply them to your working tree, and accept or reject them.


Find Code Suggestions on a Pull Request

When someone adds a Code Suggestion, the pull request gets a comment with 2 links:

  • Code Suggestion for #PR opens the suggestion on gitkraken.dev.
  • locally on your machine opens the suggestion in GitLens or GitKraken Desktop.
Pull request comment with Code Suggestion options
Pull request with Code Suggestion comment

You can also find them in the GitLens views:

  1. Expand a branch, commit, or worktree that has a pull request, then expand the pull request.
  2. Expand Code Suggestions to list each suggestion with its author.
  3. Select a suggestion to open it in Patch Details.

Review and Apply Suggestions Locally

  1. Open the suggestion in Patch Details, from the pull request comment or the Code Suggestions list.
  2. Review the changes file by file.
  3. Select Apply Patch to apply the changes to your current branch, or open the Apply Patch Options… menu and select Apply to a Branch.
  4. Select Accept to mark the suggestion accepted, or Reject to decline it.
Applying a Code Suggestion locally in GitLens
Applying a Code Suggestion locally

Review and Commit Suggestions in gitkraken.dev

  1. Select Code Suggestion for #PR to open the suggestion in gitkraken.dev.
  2. Review each file and its proposed changes.
  3. Select Commit Suggestions.

This creates a new commit on the remote branch (shown under COMMIT SUGGESTIONS TO).

Accepting and committing Code Suggestions in gitkraken.dev
Committing suggestions in gitkraken.dev

Availability

Note: Code Suggest is supported only for repositories on GitHub.com.

Have feedback about this article? Did we miss something? Let us know!
On this page