Some time ago I published a Visual Studio extension called Memeful Comments for displaying images, including animated GIFs, alongside your code to enhance explanations with visuals or simply to express your reaction to the code. This extension is now available for Visual Studio 2019!
The source code is publically available on GitHub.
Another new feature included in this version is the support for the Visual Studio environment variables $(SolutionDir) and $(ProjectDir) in image URLs. Example:
// <image url="$(ProjectDir)Images\radix.png" scale="0.5" />
static void Radix(int arr)
You can provide feedback here.