Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I adjust font size in VS Code markdown preview?

The entirety of my Visual Studio Code settings.json file is:

{
    "notebook.markup.fontSize": 48,
}

I can create a markdown file eg file.md and preview it in VS Code by pressing the following key combination:

Ctrl+K V

This markdown preview font is too small for my taste. Adjusting it like this article recommends does nothing. I don't have any extensions installed. To demonstrate how I adjust the setting I could use either of these two settings.json files and the markdown preview font size remains constant.

settings.json file #1

{
    "notebook.markup.fontSize": 12,
}

settings.json file #2

{
    "notebook.markup.fontSize": 48,
}

Am I doing something wrong, or is this a bug?

like image 262
jophuh Avatar asked Mar 28 '26 01:03

jophuh


1 Answers

You should probably be using the setting:

Markdown > Preview: Font Size

It doesn't sound like you are in a Notebook since you are using that command to preview it.

like image 132
Mark Avatar answered Apr 02 '26 22:04

Mark



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!