Shift + Click + Drag for Multi-line Comments in GitHub
If you’re like me and frequently review pull requests in GitHub, you may have found it frustrating when only a portion of the code snippet appears in the preview while you’re adding comments.
Luckily, I recently discovered a solution: multi-line commenting. Just hold down Shift
, then click, hold, and drag over the lines you want to include in your comment. Release the mouse to instantly create a multi-line comment!