29

There is such an extension in VS: TeX Comments and the example:

enter image description here

I wonder if it's possible to do this in VS Code?

cigien
  • 57,834
  • 11
  • 73
  • 112
C.K.
  • 1,409
  • 10
  • 20

2 Answers2

0

Comments in vscode support unicode characters. For easy conversion, you can use tools that convert tex symbols to unicode. An example of such is:

https://www.unicodeit.net/

As an alternative, you can search through the supported unicode characters for what you are seeking. For instance:

suppose you have:

x^2 + y^2 = 1 +dx^2y^2

It is the case that each of these symbols exist in the list of supported unicode characters:

² + ² = 1 + ²²

Full tex rendering is only supported externally by extentensions, as you can see in the tex comments extension that you linked to.

  • 1
    While this link may answer the question, it is better to include the essential parts of the answer here and provide the link for reference. Link-only answers can become invalid if the linked page changes. - [From Review](/review/late-answers/33518426) – MrDiamond Dec 30 '22 at 20:34
-2

This may not be exactly what you're looking for, but I know there is one extension that could be an alternative, it's called Ultra Math Preview.

Pros:

Although this extension only allows you to see the math equations when your mouse hovers over it works even with comments.

Cons:

However, this only works with .tex and .md files, and sometimes the small rendered window gets in the way when you try to edit equations.

Sing Song
  • 17
  • 4