-
Notifications
You must be signed in to change notification settings - Fork 29.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Markdown text size too small by default. Would like ability to change font size of markdown rendering #126294
Comments
I would consider this a "bug" since the
@mjbvz is there an ETA on when this would be added to an iteration? I keep seeing this come up in user feedback. |
There's also a feature request #123149 |
Not in favor of reusing that setting for notebooks. I believe we should add a new setting for notebook markup/outputs What do people want this setting to do? Scale everything? Or just the body text? |
I think the same way the current setting scales everything. I think having separate settings is fine, same for output as long as it inherits from the notebook default. |
It would be nice to have a setting to scale everything (headers/text/etc) so that when |
I am desperately waiting for an update for this feature. I changed "Markdown > Preview: Font Size" to be same as "Editor: Font Size" but it seems like it's not the feature that I expected. I think making independent settings will be better for users to make things customizable. |
If it's not this small people would not have noticed it. Just make it larger before adding customization feature for this. |
I changed the title of this to reflect the very common complaint that markdown text by default is too small, which seems to be the main driver in wanting to customize the size. Personally, I'm having a hard time seeing how the current default is that much smaller. Doing a close comparison in Photoshop of the following image shows that VS Code renders markdown about one pixel smaller for capital letters than that of Jupyter. VS Code's version is also shorter in length. For reference, the coding font size is identical. So indeed VS Code by default is smaller, but is this enough to be driving the complaints? Are there other variables that make this difference much larger? For example, the above was captured on Windows. Maybe Mac or Linux is different? |
To me the problem is that the default font size for markdown is smaller than that of the code's and output's. When people add markdown, they mean to say important things like their conclusions from the output etc, so the default markdown text should at least be the same with code and output font size, not smaller. One workaround is to set the editor font size to 12, then use "ctrl+=" to enlarge everything, then markdown text would be easier to read, but then the menu and other stuff are all going to be larger... So I think it's best to just make the default markdown text size larger (at least the same with code), or give people a custom setting for it like the "editor font size". |
I'd like to add that as well as it being too small relative to the code and output text by default, in cases where I've deliberately set the editor's font size larger (to accommodate a secondary screen without also scaling the UI) the Markdown output then also looks completely out of place. So it's not enough to set the default to a larger font size, but that size should either change in proportion to the current editor font size, or there should be a setting that allows for tweaking the two independently of each other. |
Note that while there isn't the ability to change the notebook markdown font size separately, the current vscode-insider builds have increased the default size. For many of you this may be sufficient. However, keeping this issue open for possibly adding a the separate setting. |
I would just like to make a comparison with Databrick's Python Notebooks Markdown Feature: With VSCode's Jupyter Notebook Markdown Feature: I do think a separate setting would be best for users who would like to have a bigger Markdown font size (which, in my case, is much better for my eyesight and helps me a lot in commenting the code and separating it in blocks). |
Agree with @FedericoDM ! Attached image is comparing As you can see, two of each code blocks' and results' font size are similar.
|
Totally agree with the above comments. Adding this feature would be very helpful. At least the default font size can be increased a bit to match that of Google Colab's, which helps people with relatively moderate vision. |
Please consider changing the font size in the next version. Now it is too small for reading. |
Thanks for all the feedback here. We do understand that having a separate setting to adjust the size of markdown text in a cell would be ideal. However, our resourcing situation is such that it's not as high priority of a work item to get done. PR's are welcome! :) However, an in-the-meantime fix is to simply change the default size of the text as we did earlier. Given the following screenshot you can see the size of the VS Code font is pretty close to that of Jupyter Notebook. Both use font a font height that's similar to that of the code block fonts. It does look like the font kerning and family may be different between VS Code and Jupyter because VS Code's text appears a bit more "squished". It's also gray by default vs black. That certainly doesn't help the situation. But then there's Google Colab. It is obviously using a much larger default font size. In fact, it's markdown text size is significantly larger than the code itself. All this said, we can certainly bump the default size a bit more to make it similar to that of Colab. However, that wouldn't likely fix the problem that @tilohauke screen-shotted above where the markdown text is significantly smaller than that of the code. @tilohauke, what is the code behind your screenshot? |
The tiny Markdown font size makes Jupyter Notebooks in VS Code pretty much unusable, especially on 2K or even 4K displays. As pointed out in this comment, the font size uses a CSS variable that is not possible to change in the settings. The only viable workaround I found was using the DevTools to change the variable every time I start up VS Code but that is not sustainable. Example screenshot attached. |
The next insiders build adds a new It defaults to 120% of your editor font size (so 12px editor font size == 14.4px). We may adjust the default value based on feedback |
Was playing around a bit, and didn't see a way to set this. Both Editor Font Size and Markdown Preview Font Size didn't look to change it. Per chat with @rebornix this might be a few feature to add.
Note: "this is a normal line" is the markdown cell.
The text was updated successfully, but these errors were encountered: