devchat icon indicating copy to clipboard operation
devchat copied to clipboard

Improving Code Suggestion Experience in IDE During Code Review

Open runjinz opened this issue 1 year ago • 0 comments

Hello there,

I've been working with the code review feature and found that the experience of applying code suggestions within the IDE could be much improved. Specifically, when a code suggestion is provided, it's challenging to directly apply it due to the diff format. The addition (+) and deletion (-) prefixes in the diff format make it tricky to select and apply the suggestions directly without manually editing these out.

This issue leads to a less efficient code review process, as developers have to spend additional time manually adjusting the suggestions instead of being able to apply them with a single click or command. Improving this could greatly enhance the developer's experience by making code reviews faster and more seamless.

Possible Improvement:

  • Is it possible to implement a feature that automatically strips these prefixes or offers a 'clean' version of the code suggestion that can be applied directly in the IDE?
  • Alternatively, providing an 'Apply Suggestion' button or command in the IDE that could handle this automatically would also be a significant improvement.

I believe enhancing this aspect of the code review process could significantly benefit many developers by making code integration during reviews quicker and less error-prone.

Thank you for considering this enhancement.

img_v3_029t_694e5d15-9ca6-43aa-97a2-96c7f1759a2g

runjinz avatar Apr 16 '24 10:04 runjinz