Repository navigation
math formulas are not interpreting visually in Copilot Chat, showing in katex or latex format #255243
Description
Activity
- changed the title
[-]math formulas not showing up visually[/-][+]math formulas not showing up visually in Copilot Chat[/+]on Feb 29, 2024 - changed the title
[-]math formulas not showing up visually in Copilot Chat[/-][+]math formulas not interpreting k/latex visually in Copilot Chat[/+]on Feb 29, 2024 - changed the title
[-]math formulas not interpreting k/latex visually in Copilot Chat[/-][+]math formulas are not interpreting visually in Copilot Chat, showing in katex or latex format[/+]on Feb 29, 2024 - assigned and unassigned
on Mar 26, 2024 - addedfeature-requestRequest for new features or functionalityRequest for new features or functionality
on Mar 27, 2024 Is there any work around for the time being? I rely on copilot to quickly check my formulas for my chemistry class.
Is there any work around for the time being? I rely on copilot to quickly check my formulas for my chemistry class.
I just told it to render the formula again but replace ( [ ] ) with $ and it worked for me
Please elaborate a bit, Fremdkoerper .
I am having no luck with this at all in latest vscode 1.92.o and GitHub Copilot Chat v0.19.2024073102 (pre-release).
This is the best I can get:
Problem is, I'd like to use GitHub Copilot for studying Deep Learning, especially since it is now backed by ChatGPT 4. However, without properly rendered formulas it's quite useless.
I'm having the same issues with Latex rending in Github copilot, even in the latest release VS Code (1.92) and Github Copilot Chat (Release: 2024-08-02).
Example below:
Prompt_: What is the formula for Sample Standard Deviation?_
Response:
_$$ s = \sqrt{\frac{\sum (x_i - \bar{x})^2}{n - 1}} $$Where:
$s$ is the sample standard deviation.
$x_i$ represents each data point in the sample.
$\bar{x}$ is the sample mean.
$n$ is the number of data points in the sample._Math notation really needs to display correctly for such as state-of-the-art piece of tech.
Reacted by Heinz Schmiedhofer, Isaac Tesfaye, levibaguley, wuxuehai01 and Harald MackIs there any work around for the time being? I rely on copilot to quickly check my formulas for my chemistry class.
I just told it to render the formula again but replace ( [ ] ) with $ and it worked for me
I've just been pasting it into web based LaTeX renderers. Would be nice if it supported it natively. Clearly the model is trained to think the renderer will work.
47 remaining items
- assigned and unassigned
on Jul 11, 2025 The latest VS Code insider build enables Katex rendering of block and inline math equations
To enabled it, just set
"chat.math.enabled": true. We include instructions so models should know how to render math when needed. The supported markup is$$...$$for math blocks and$...$for inline math equationsPlease give it a try and open new issues for any bugs you run into. I'll keep polishing it next iteration and we'll enable it by default once it is ready
Reacted by sudg6The latest VS Code insider build enables Katex rendering of block and inline math equations

To enabled it, just set
"chat.math.enabled": true. We include instructions so models should know how to render math when needed. The supported markup is$$...$$for math blocks and$...$for inline math equationsPlease give it a try and open new issues for any bugs you run into. I'll keep polishing it next iteration and we'll enable it by default once it is ready
not work for me, what went wrong
Carl Shaw (@Shaw-Way) It's a top level setting, not under
GitHub.copilot.advanced. You should see it listed in the settings ui. Also make sure you are using the latest VS Code insiders release- added a commit that references this issue
on Aug 5, 2025 Closing as math is now enabled by default in VS Code insiders. The plan is to ship it enabled by default in the next stable release
Please keep testing and open issues if you notice any bugs/issues
- locked and limited conversation to collaborators
on Oct 3, 2025

When I ask a question of Copilot Chat:
write the below as math formula
This is the response I get in the vs code:
I would be ok with this, notice it is missing i in the \sum as well as some other niceties (I converted the above into notebook markdown by replacing [ ] and ( ) with $ $) :
Version: 1.87.0 (user setup)
Commit: 019f4d1
Date: 2024-02-27T23:41:44.469Z
Electron: 27.3.2
ElectronBuildId: 26836302
Chromium: 118.0.5993.159
Node.js: 18.17.1
V8: 11.8.172.18-electron.0
OS: Windows_NT x64 10.0.22631