VSCodeTips is a community of 1,087 amazing vscoders

We're a community that shares tips & tricks on how to best leverage VS Code

Create account Log in
Cover image for VS Code Tip of the Week: Watermelon VS Code Extension
Nick Taylor
Nick Taylor

Posted on • Updated on

VS Code Tip of the Week: Watermelon VS Code Extension

This week's tip of the week is a VS Code extension that I discovered today called Watermelon.

The Watermelon extension in action

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.

GitHub logo watermelontools / wm-extension

🍉 Highlight a piece of code to see its historical context.

Watermelon GitHub Plugin for Visual Studio Code

Report an issue

GitHub Repo stars Contributors Twitter Follow Installs Downloads Rating Slack

Watermelon is an open-source integration between GitHub and Visual Studio Code to document code and view Git Blame. 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 has 2 actions that you can use:

  • View Git Blame
  • View Pull Requests

Simply click the Watermelon icon on the sidebar. After that you can click any of the 2 different buttons Watermelon has.

View Commit History

Highlight a piece of code, and then click the View Commit History button. We will run Git Blame for you, and give you a table with the Git commit messages relevant to the piece of code you highlighted.

watermelon screenshot

You may also highlight and right click on the code, you will find the 'View Commit History with…

It’s still early days, but it looks promising as an extension.

Discussion (0)