VS 2022 version is available here: https://marketplace.visualstudio.com/items?itemName=vs-publisher-1305558.VsTeXCommentsExtension2022
Intra-text adornment extension to the Visual Studio Editor for rendering TeX math comments inside editor.
Supports C#, F#, C, C++, VB.NET, Python, R, D and Fortran.
Extension is transforming all continuous code blocks where all lines starts with single line comment syntax (can be preceeded by white spaces) which for example in C# is '//' and the first line starts with '//tex:' prefix ('//' part is language dependent) to rendered image where math is rendered by MathJax. Math in this comments has to be surrounded by $ (for inline math) or $$ signs. Syntax of math is LaTex.
Example of C# code:
Source code for screenshot above looks like this: