This week's tip of the week is a VS Code extension that I discovered today called Watermelon.
What it does is give you the context of a piece of highlighted code by pulling in the comments from the associated pull request. Support for other platforms like JIRA are coming as well. Checkout the repository if you want to see how it all works.
🍉 Highlight a piece of code to see its historical context. Receive helpful responses in plain English with our open-source tool.
Watermelon GitHub Plugin for Visual Studio Code
Watermelon is an open-source integration between GitHub and Visual Studio Code. Watermelon makes you an expert on any file instantly by running
git blame for you and telling you why a block of code was written that way by someone else.
Watermelon allows you to highlight a piece of code to obtain its historical context.
Simply click the Watermelon icon on the sidebar, highlight a piece of code, and then click "Run Watermelon".
Depending on the size of your GitHub history, this might take a few seconds.
Alternatively, you can run with our
You may also highlight and right click on the code, you will find the 'Start Watermelon' command at the end.
- macOS 10.11+, Windows 10+ or Linux
- Visual Studio Code v1.63.0+
- You must have Git locally installed (try
git --versionor install it now)
It’s still early days, but it looks promising as an extension.