Easy and fast way for reviewers to suggest code changes that can be easily applied by change owner.
Reviewer workflow
-
Select line or multiple lines of diff and start comment
![Comment example](images/user-suggest-edits-reviewer-comment.png)
-
Click on suggest fix - that copies whole selected line/lines
![Comment example](images/user-suggest-edits-reviewer-suggest-fix.png)
-
Modify lines in the suggestion block. Optionally add more details as normal comment text before or after the suggestion block.
![Suggestion example](images/user-suggest-edits-suggestion.png)
-
Optionally you can preview suggested edit by clicking on Preview fix when you stop editing comment
![Suggestion Draft example](images/user-suggest-edits-reviewer-preview.png)
![Suggestion Preview](images/user-suggest-edits-preview.png)
Author workflow
You can apply one or more suggested fixes. When suggested fix is applied - it creates a change edit that you can modify. More about editing mode.
Part of Gerrit Code Review