Release

February 26, 20201 minute read

Multi-line code suggestions beta

Since shipping multi-line comments, many people have requested multi-line code suggestions as well.

You can now suggest a specific change to multiple lines of code when reviewing a pull request. To select a multi-line code block, you can either:

  • click and hold to the right of a line number, drag and then release the mouse when you’ve reached the last line of the desired selection; or
  • click on a line number, hold Shift, click on a second line number and click the "+" button to the right of the second line number.

Once you've selected the code block, click the diff icon and edit the text within the suggestion block.

Learn more about pull request comments and send us your feedback.

Subscribe to our developer newsletter

Discover tips, technical guides, and best practices in our biweekly newsletter just for devs.

By submitting, I agree to let GitHub and its affiliates use my information for personalized communications, targeted advertising, and campaign effectiveness. See the GitHub Privacy Statement for more details.

Multi-line code suggestions beta - GitHub Changelog