This year I do tons of code reviews. We’ve hired an external team from India and they produce a lot of code that must be carefully reviewed. Recently I was told about a feature that can make my/developer’s life a bit more comfortable. The feature is called „Suggestion”.
First of all – we use the Azure DevOps suite for project management purposes. I worked with others in the past but this ADO stuff is really nice and useful.
So, assume that we have PR with code to be reviewed:
Imagine I found a flaw that needs to be corrected. For example, I don’t like enum members’ names starting with small letters. Usually, I select the code that I want to comment on and click the comment icon. Toolbox appears, and I can add my thoughts there.
But there is an easier way. Suggestion! So instead of writing my comment, which will be processed by the developer (with a chance to be misunderstood), I write my suggestion, of how I’d like the code to be like.
When I finished, the „Commit all changes” button appears. It might me clicked and then standard commit toolbox appears.
After commit, my suggestion is marked accordingly (as committed).
I hope you will find this useful 🙂 Have a nice day.