DEV Community

Nick Taylor for VS Code Tips

Posted on • Updated on • Originally published at community.vscodetips.com

VS Code Tip of the Week: Watermelon VS Code Extension

I discovered the Watermelon VS Code extension yesterday.

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.

Features

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)