How to change font size of markdown preview?

I couldn’t change font size of markdown preview.

1 Like

Hi Yasin,

You found the correct setting – Markdown > Preview: Font Size (markdown.preview.fontSize) is exactly the one that controls the built-in markdown preview font size.

If it’s not taking effect after changing the value, try these steps:

  1. Close the markdown preview tab and reopen it (click the preview icon again, or use Cmd+Shift+V)

  2. If that doesn’t help, reload the window: press Cmd+Shift+P, type Developer: Reload Window, and hit Enter

The setting should apply after that. Let us know if it still doesn’t work after reloading.

Side note: If you’re looking to change the font size in the AI chat panel (where Cursor’s responses appear), that’s a different area – markdown.preview.fontSize won’t affect it. For the chat panel, you can zoom with Cmd+ / Cmd-.

1 Like

I’m having this issue still. I set `markdown.preview.fontSize` to 20, and reloaded windows, restarted, and tried reloading with extensions disabled.

Cursor Version: 2.6.21
VSCode Version: 1.105.1

1 Like

I see, markdown.preview.fontSize only controls the side preview (opened with Cmd+Shift+V), not the inline Preview mode you see when opening a .md file directly – those are two different renderers.

Could you try Cmd+Shift+V on a .md file and check if the font size there reflects your setting of 20? If so, the inline Preview mode just doesn’t read that setting. For the inline preview, Cmd+ / Cmd- to zoom is the workaround.

I see. Looks like it works as expected for side preview.

I did notice that a recent update made the default Markdown Preview font size smaller, hence me looking to make it bigger. As you know, Cmd+/- makes everything bigger and isn’t as elegant a solution.

1 Like

can we make the inline Preview mode respect the font size setting?

That’s a fair request. Currently, the inline Preview mode uses a separate renderer from the side preview, and doesn’t read the markdown.preview.fontSize setting. I’ve flagged this as a feature suggestion.

In the meantime, Cmd+ / Cmd- will zoom the entire editor (including the preview), which isn’t as granular but works as a workaround.